15,831 reputation
22962
bio website
location
age
visits member for 3 years, 11 months
seen 40 mins ago

Jul
7
comment game unpublished due to copyright issue
cross posted on gamedev: gamedev.stackexchange.com/questions/79871/…
Jul
7
comment Locking database records
you can use an update with an extra where lock<now() clause to ensure no update happened to the lock field. Then you test how many rows were affected and select another record when it fails.
Jul
7
answered An algorithm for reconstructing a graph from its shortest path information?
Jul
7
answered Locking database records
Jul
7
comment game unpublished due to copyright issue
replace with something else, just cause you found it on the internet doesn't mean it's free to use
Jul
7
comment game unpublished due to copyright issue
just remove the batman references, that is copyrighted material and the other apps are either licensed or no-one has reported them yet
Jul
4
answered Terminology: queue versus fifo
Jul
4
comment Why isn't testing a language a supported feature at the syntax level?
@goldilocks assert is not meant to be for testing but debugging, there's a difference
Jul
4
comment How can I close my Open Source project and what is required from me in order to make it closed source?
you can release the same project under different licenses (for example a free personal use and a paid commercial) that inlcudes a open source licence and a closed source license
Jul
4
comment Is serialization better done in instance methods or static methods
his property implementation didn't change the object in any way, it just passed itself into a formatter and returned the resulting bytes
Jul
3
comment Is it a good idea to return a default value if a field in a query cannot be found?
it depends, sometimes a default is good and sometime a missing field is a serious error
Jul
3
awarded  Custodian
Jul
2
revised What does “ (int) value & 0x1, (int) value & 0x2, (int) value & 0x4, (int) value & 0x8 means”
added 34 characters in body
Jul
2
comment What does “ (int) value & 0x1, (int) value & 0x2, (int) value & 0x4, (int) value & 0x8 means”
@Sjoerd that's why I said "powers of 2"
Jul
2
answered What does “ (int) value & 0x1, (int) value & 0x2, (int) value & 0x4, (int) value & 0x8 means”
Jul
1
comment Linking a GPL executable from proprietary .bat script
could the bat work without the FART or can BURP (Big Ugly Replace Program) drop in just as well
Jun
30
comment Is it safe to rely on static analysis to “reproduce” concurrency bugs reliably?
something to add to 4: each resource protected by a lock must be documented that it is protected by the lock and must never be used away from where the lock is acquired
Jun
27
comment When does extracting methods from code stop to make sense?
int add1(int x){return x+1;}
Jun
27
comment Is there a known standard data structure which is a hash table that resolves collisions using a binary tree?
a hash by definition may be equal for distinct objects so a badly/maliciously designed hash function will still defeat it and cause O(n) worst-case complexity
Jun
26
comment Why is the finalize method included in Java?
@Voo it's probably more correct to say the finalizer is the fallback in case the contract of the object is not followed (close() is never called before it becomes unreachable)