@SimonAndréForsberg Some mis-happenings that happened in the past have been dragged to the present and I wanted to keep them in the past. Some decisions I took that probably may need some explanation
@Mast Consensus (or how it is spelled) between the envolved parties won't be possible
@IsmaelMiguel then flagging is out of the question. if it is something that is just related to a few people, then it does not belong on meta. talking about it in some chat room sounds like the best option.
@SimonAndréForsberg Since I believe this is walking towards being a site-wide issue, I wanted to express myself and try to improve the environment here on The 2nd Monitor.
@Quill Unless another language takes over Javascript to become the web de facto language, writting Javascript isn't a mistake but a need. And that is what puts food on my table and allows me to burn my pizzas
If this code works, but would benefit from from being rewritten, than Code Review might be more appropriate (but see their on-topic guide in the help pages); if it's not working, or there's some kind of problem - other than - efficiency then please include that information in the question, and then it becomes on-topic here. I'm not voting to close, because I'm not entirely sure it's off-topic here. — David Thomas21 secs ago
@SimonAndréForsberg Most of those things are actually fixed in Es6/bad practice to use/fixed by using a module system (which should have bene part of the language from day 1)
@Mast that
Or you could just write unit tests with pure functions and not have to rely on a debugger as a crutch ¯\_(ツ)_/¯
you might run into the odd bug and be like "lol, wat" but that will happen in any language. javascript encourages (forces) you to have decent unit tests if you want to stay sane, but yu're going to t want to write those anyway in any language so
of course, I'm biased, but javascript is my favourite language to use
its much more fun than C#
Java would be more fun to use if gradle wasn't so complex - npm has spoiled me
@Mast but if you have decent test coverage, you know where something is going wrong. it's either going wrong in your code - you have unit tests for that - or its going wrong in a 3rd party library - in which case, report to github and monkey patch
either way, this conversation is getting long. Let's take it to Javascript Libraries if you want to discuss further :-)
I have written this function but I am not so proud on it. I could use some help refactoring it.
Would recursion improve my code?
Data sample.
{
"Name":"test2",
"DepartmentUnitId":"test",
"ParentDepartmentUnitId":"test",
"NestedDepartments":[
{
"Name":"test2",
"Dep...
http://www.commitstrip.com/en/2015/08/28/murphys-take-on-moores-law/ CommitStrip - Blog relating the daily life of web agencies developers Murphy’s take on Moore’s Law CommitStrip 1440782981
This is some fairly heavily optimized C#. Aside from reading like C++ code due to all of the pointers, does this pass sanity checks, and is there any way to improve it, while keeping its speed (or perhaps a performant way to fix the weighting issue)? For reference, it takes ~170ns to produce each...
In this scenario, the main page contains a list of links to the subpages. The requirement is to navigate to each page(if a condition passes) and perform some actions. What I have tried so far is as follows:
at MainPage
ListItem.each {
if(Button.present){
Button.click()
...
I found a few question about the game and IMHO it's a relational problem and better adressed by set logic. Thus I created this solution in SQL to get away from ugly javascript, elegant java and praticla C#
--drop table [Hand]
--drop table [Action]
create table [Hand]
(
Id int primary key n...
(I posted this over at Stackoverflow)
So currently I have
String uri = website.getUri();
Optional<PageDetail> pageDetail = webClient.getDetailOfUri(uri);
String displayName;
String description;
if (pageDetail.isPresent()) {
displayName = pageDetail.get().getName();
description = pageD...
I have the following table definition:
CREATE TABLE foo (
id INT,
vers INT,
value1 INT,
value2 INT,
CONSTRAINT PK PRIMARY KEY (id, vers)
)
INSERT INTO foo
VALUES
(1, 1, 123, 123),
(1, 2, 234, 234),
(1, 3, 345, 345)
And am running this query to s...
@rolfl The main idea is that everybody who cares to read knows the reasons why I ignore him. And that, at least, don't make me interact with that user.
@IsmaelMiguel Why? Sounds to me like this whole thing is a massive misunderstanding. If this were a job, and you were doing this about another co-worker, that would not fly what-so-ever.
Would anyone be willing to enlighten me as to the proper way to structure your JavaScript/jQuery? I feel like having a million little functions all crammed in the bottom of the page is not how professionals do it. Also, it just plain looks ugly, and it's getting harder to find the function I need to look at. I'm basically a total n00b.
Spartacus is a 1960 American epic historical drama film directed by Stanley Kubrick. The screenplay by Dalton Trumbo was based on the novel Spartacus by Howard Fast. It was inspired by the life story of the leader of a slave revolt in antiquity, Spartacus, and the events of the Third Servile War.
The film starred Kirk Douglas as Spartacus, Laurence Olivier as the Roman general and politician Marcus Licinius Crassus, Peter Ustinov, who won an Academy Award for Best Supporting Actor, as slave trader Lentulus Batiatus, John Gavin as Julius Caesar, Jean Simmons as Varinia, Charles Laughton as Sempronius...