882 reputation
59
bio website ebusiness.hopto.org
location
age
visits member for 4 years, 4 months
seen 2 days ago

For stupid stuff I have shared with the Internet, see my Twitter feed: @NoHatCoder


2d
answered why are globals bad in javascript
Mar
1
comment Why aren't “fat binaries” more widely used for cross-platform applications?
Makes me wonder, is it even possible to make a polyglot executable file that works both in Windows and some *NIX?
Jan
3
awarded  Autobiographer
Nov
28
revised Should I accept empty collections in my methods that iterate over them?
Removed potentially confusing "no", the question asks two opposite questions.
Nov
28
comment Should I accept empty collections in my methods that iterate over them?
I have to throw a -1 for "You may even save some garbage by returning the parameter itself.", see above comments.
Nov
28
suggested approved edit on Should I accept empty collections in my methods that iterate over them?
Nov
28
awarded  Yearling
Sep
21
answered Why don't developers make installation automatic on windows?
Sep
1
comment From a technical point of view, could JavaScript be compiled instead of interpreted?
Whether the mesh of JIT-compilation, run-time checks and assumptions with fallbacks that make up V8 is a compiler depends on the exact definition of the word. But calling it a "pure compiler" is just plain wrong.
Aug
13
comment Ideal & idomatic javascript interface for RESTful API
Let us continue this discussion in chat.
Aug
13
comment Ideal & idomatic javascript interface for RESTful API
@LieRyan You don't know how the data is structured. And for the record, my answer doesn't actually say "integer id", it says "unique id" with no implementation details given.
Aug
13
comment Ideal & idomatic javascript interface for RESTful API
@LieRyan I cite the very first sentence of my answer: "First of all, whatever you do, please use unique ids.". You seem to confuse the terms URI and unique id. A URI is a type of unique id, but there is no need for these unique ids to conform to a URI scheme.
Aug
13
comment Ideal & idomatic javascript interface for RESTful API
@LieRyan Your comment lacks reasoning. What relevant purpose does an URI (however you define that term) serve, which a locally unique integer doesn't. It is easy to construct an URI scheme from the integers, but it is not necessary for local data manipulation.
Aug
13
answered Ideal & idomatic javascript interface for RESTful API
Aug
12
answered The nature of callbacks in Node.js
Jul
30
comment How to write JavaScript while keeping HTML/CSS out of it
@Dennis I mean you produce the JSON as output of a PHP script, so that it is sent as an HTTP response, you wouldn't need to save the result the disk to do that.
Jul
30
awarded  Quorum
Jul
30
answered How to write JavaScript while keeping HTML/CSS out of it
Jul
30
answered Is too much whitespace a bad thing?
Jul
9
comment What does it mean for a sorting algorithm to be “stable”?
Correction: The unstable algorithm exhibits undefined behaviour when two elements are equal, it is perfectly possible that the order is sometimes preserved.