762 reputation
47
bio website ebusiness.hopto.org
location
age
visits member for 3 years, 4 months
seen 2 hours ago

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.
Feb
18
awarded  Caucus
Feb
6
comment Why is NoSQL better for this scenario?
@Joshiatto You have certainly begun thinking in the right patterns, beware that disk access can also be pretty slow, especially if you use an old-school harddisk. Effectively the file system is just a key/value database. I'd probably keep a copy of the data in memory if possible, but it may be a viable option simply to rely on the OS keeping some of these files in memory for you. It is not something I have experience with, but it is a feature of pretty much all modern desktop and server OSs. Usually enabled by default, but if you want to rely on it you better check that the settings are good.
Feb
5
comment Why is NoSQL better for this scenario?
@Joshiatto It is definitely problematic, stupid Facebook. In any case, for your practical problem you may be best off starting out with tools you are used to and focus on making a good data structure. As for application memory versus database it doesn't have to be either or, you can decide that some data doesn't need persistence while other does, or you can degrade the database to basically just being a backup tool, storing data that also reside in application memory.
Feb
5
answered Why is NoSQL better for this scenario?
Jan
15
answered Cost of setInterval in Javascript
Jan
14
comment Asking people to disable Java for security - what's next for developer?
@MichaelBorgwardt Have you got proof that other technologies haven't lost use because of such issues and related media coverage?
Jan
13
comment Asking people to disable Java for security - what's next for developer?
@MichaelBorgwardt Not short term, and the impact of the individual story isn't big. It is hard to tell exactly how big the impact is, but to suggest that it is not there, that Java will not get a single project less because of this, that is as likely as throwing a stone in the water that causes no ripples.
Jan
13
answered Asking people to disable Java for security - what's next for developer?
Jan
13
answered would like help understanding javascript throttle function