Reputation
3,388
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
2 11 31
Newest
 Yearling
Impact
~181k people reached

Jun
28
comment Working with Javascript classes the right way
That said, if the intent was for this to exist only once on the page, then self could be done away with entirely. Right now it's a weird mix of the two.
Jun
28
comment Working with Javascript classes the right way
@mplungjan No, PageControl.initialise() is going to call the wrong function for PageControl instances made later, if the class function was reusable. self.initialise() (defined at the top of the constructor function) is correct and is going to be the current instance in every case.
Jun
27
comment Does Scrum turn active developers into passive developers?
@MaR That's why the devs don't talk to the customers. The customers talk to the Product Owner and ask for faster horses, the P.O. is the one that sees all the clients' issues, combines and prioritized them, and in the process figures out that cars are better than faster horses
Jun
21
comment Is duplicate syntax for defining named functions a bad language design decision?
However, assigning existing functions seems to be missing the end of the sentence
Jun
21
comment Would you get better performances by coding an application in C, then compile to JavaScript?
@Dokkat Or of you meant optimizing the C code and then converting that, that's an even bigger issue - a C optimization isn't necessarily going to speed up Javascript. It might even do the opposite, given how different the languages and memory management are.
Jun
21
comment Would you get better performances by coding an application in C, then compile to JavaScript?
@Dokkat Emscripten compiles to Javascript that can be run anywhere Javascript can be run (meaning, no plugin for a browser or any other native piece of code). Emscripten cannot generate "not even possible in Javascript" code, because Javascript is all it generates.
Jun
19
comment Is it beneficial to study past the basics of a core language when the primary goal is to rely on its framework?
@JoshuaTaylor I think I'd put that before frameworks in importance, since idiomatic code is likely to be used with the framework and learning them separately is more useful - the language idioms are not part of the framework, and users of the framework have probably added more
Jun
19
comment Responsive Web Design vs. User-Agent Sniffing
@ruakh Think of changing sizing and spacing based on whether the user is using their finger or a mouse
Jun
19
comment When should the programmer's spoken language be used during development?
Are public and double also Italian? I'd expect at least a little language-switching whiplash even for an Italian-speaker...
Jun
18
comment Mental Models or Real-World-Metaphors for Functional Programming
Looks like mimicking the form of Lisp without understanding the meaning
Jun
16
awarded  Yearling
Jun
14
comment How would I change the precision of a variable in Python?
Yeah, that clarification was absolutely necessary, because due to floating-point precision what you're trying will not work.
Jun
13
comment What if(event) statement means in JavaScript?
"if(!event) is the same as if(event == false)" is also not correct
Jun
13
comment What if(event) statement means in JavaScript?
0 evaluates to false as well (and yes, is an object - for example: 0..toExponential(3))
Jun
13
reviewed Approve Is there a more intelligent way to do this besides a long chain of if statements or switch?
Jun
12
comment Why do we need fork to create new process
@imel96 Uh, yes, the shell does need to change the file descriptors so stdout of find goes to stdin of grep... Otherwise output will just continue to go to the terminal's stdout, that it inherited from the shell.
Jun
11
comment Continuing to code on large projects
Versioning by folders works (sorta) if you don't care about the differences between the versions. I used to have the same loss of interest, but decided to try using git with my own projects after using svn at work. Now, knowing what changes I have made (by diff and log) and the ability to branch and merge have removed most (but not all!) of that mental barrier. Thing is, it took a month or two before I got used to using version control by myself and not on a team. How long did you try it?
Jun
2
awarded  Informed
Jun
1
reviewed No Action Needed Does my use of the strategy pattern violate the fundamental MVC pattern in iOS?
Jun
1
reviewed Leave Open Jasmine BDD vs Integration Tests