16,061 reputation
23063
bio website
location
age
visits member for 4 years
seen 17 mins ago

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)
Jun
25
revised Exceptions: Why throw early? Why catch late?
added 79 characters in body
Jun
19
comment How to check the space complexity of this program?
simple function, no recursion, no dynamic allocation: O(1)
Jun
17
answered What prevents a race condition on a lock?
Jun
17
comment What prevents a race condition on a lock?
and a related question here on P.SE: programmers.stackexchange.com/questions/228827/…
Jun
16
comment About grammar, Chomsky hierarchy and obj file format
@user2485710 Remember that in the hierarchy each grammar can recognize all languages in the lower tier grammar (context free can recognize regular for example) usually using some ridiculously simple construct that you can easily hook into with the higher level trickery
Jun
16
answered About grammar, Chomsky hierarchy and obj file format