816 reputation
48
bio website ebusiness.hopto.org
location
age
visits member for 3 years, 9 months
seen 18 hours ago

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.
Jun
23
comment Is there a benefit in compiling your code as you go along?
@Thebluefish The question is if you should also compile when the program will not work properly, but merely has the semantics to pass through the compiler.
Jun
23
comment Is there a benefit in compiling your code as you go along?
I'm not the downvoter, but your logic seems biased. You will have wasted some time compiling, possibly you will also end up wasting a bit of time investigating errors caused simply by the program being in an incomplete state. I see the theory in mismatched brackets causing issues, I just don't remember the last time I had that issue and it wasn't a quick and trivial fix. Ultimately, if you know your compiler then compile errors are the easy errors, and a test that only catch the easy errors isn't worth spending a lot of time on.
May
23
revised Image Processing in browser is too slow on Android compared to that with desktop browser
General clean-up
May
23
answered Image Processing in browser is too slow on Android compared to that with desktop browser
May
22
answered Conception and design before coding: how much is this true?
May
7
answered How to refactor code that has 2 concerns
May
7
comment Why would Square inheriting from Rectangle be problematic if we override the SetWidth and SetHeight methods?
This question seems awfully abstract. There is a gazillion ways to use classes and inheritance, whether or not making some class inherit from some class is a good idea usually depend mostly on how you want to use those classes. Without a practical case I can't see how this question can get a relevant answer.
Apr
26
comment Randomized Hash function with no collisions
For what purpose do you need such a function?
Apr
1
awarded  Custodian