Reputation
17,029
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
2 33 67
Newest
 algorithms
Impact
~545k people reached

Oct
8
comment Developing “real” synchronization
synchronizing distributed data stores is a complex topic (and a question of compromises)
Oct
7
comment Why should your code not use 100% CPU?
and the OS may even enforce a cool down slice for the cores
Oct
6
comment Why was Fortran never used to develop an Operating System?
Basic is also old but definitely not suited for OS building
Oct
5
answered What should I do in C++ when implementing a container class: storing objects by value or by reference?
Oct
5
comment String sentence consistency when sent over sockets
@Omega yep it will resend a few times as needed until it just gives up and assumes the connection is gone.
Oct
4
revised String sentence consistency when sent over sockets
added 30 characters in body
Oct
4
answered String sentence consistency when sent over sockets
Oct
3
comment Is enum not a class?
actually you can make each enum constant a anonymous subclass of the enum type with its own behavior
Oct
3
revised Heap vs Stack Memory in java
formatting
Oct
1
comment Which programming language first came up with the finally block?
@PieterB because you can replace try{}finally{...} with try{}catch(e){...;throw e;}
Oct
1
comment Why implement a lexer as a 2d array and a giant switch?
Actually a giant table can be readable if formatted nicely. And most literature defines a 2-parameter delta function that defined the state transition that takes the current state and the input symbol. Either way (automatically) creating a if/else chain from the table delves into the SAT problem and NP-completeness issues when a table is efficient enough (and an if-else chain is branch heavy while a table is just a cache miss).
Oct
1
comment Create a collection with “average points” of N items from a pool with items of various points
Or if you have a total difficulty that is too high discard some high difficulty questions and redraw them.
Oct
1
comment Create a collection with “average points” of N items from a pool with items of various points
near textbook knapsack problem (sum of difficulties has to be N*average)
Sep
29
comment Illustrate Meaning of : gcc -g programName.c
the -g flag tells the compiler to add debug info that allows gdb to function, it is disabled by default to 1 prevent bloat and 2 prevent reverse engineering
Sep
22
comment How to work around Java's lack of pointers to pointers when working with linked data structures?
honestly the first version is not "horrible", and the proper way to deal with it
Sep
21
comment How to handle a large amount of authenticated clients
non blocking IO using a selection loop, check out boost's asio package
Sep
18
comment Breaking a function into smaller ones is great… except for what about code-folding?
@AvivCohn folding doesn't have the method name to help decipher what the folded code does
Sep
17
reviewed Close Is a mocking framework useful if I'm unit testing a repository/database?
Sep
15
answered Do you use static keyword to declare single instance pattern?
Sep
14
reviewed Close Is there any logical reason to auto-generate code documentation?