826 reputation
47
bio website ebusiness.hopto.org
location
age
visits member for 3 years, 8 months
seen yesterday

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
Apr
1
reviewed Edit suggested edit on When/Where to create/assign event handlers to its elements
Apr
1
revised When/Where to create/assign event handlers to its elements
Changed naming in code example to be more descriptive.
Mar
26
answered How can I explain this is an anti-pattern?
Mar
5
answered When/Where to create/assign event handlers to its elements
Nov
28
awarded  Yearling
Apr
19
comment I'd like to write an “ultimate shuffle” algorithm to sort my mp3 collection
@MichaelT No, simulated annealing use a "temperature", that allow it to regress to a lower state in an attempt to avoid being caught in a local maximum. This is just a local search, it could be modified to simulated annealing, or any of a number of other probabilistic search algorithms relatively easily, but I don't think there is much need for that. Basically what all the other algorithms do differently is to try to avoid local maxima, but I don't think you will find a local maxima for this problem that ain't an acceptable solution.
Apr
18
suggested suggested edit on I'd like to write an “ultimate shuffle” algorithm to sort my mp3 collection
Apr
18
answered I'd like to write an “ultimate shuffle” algorithm to sort my mp3 collection
Apr
5
answered Is it a good idea to build a library on top of somebody else's library?
Mar
14
comment Why use a database instead of just saving your data to disk?
@YannisRizos comment 1. Could you write that in an answer so that I can downvote it? Databases in general incur massive overheads, if you can do something faster with a database than with in-process data in a program dedicated to that task, then it is your dedicated program that sucks.