11,926 reputation
22247
bio website
location
age
visits member for 3 years, 1 month
seen 2 hours ago

Mar
10
comment Longest subsequence without string
find all substrings Y in X and find the longest gap between them
Mar
7
comment Java Swing ActionListener design
why not just add a field in the listener, nothing cumbersome about that...
Mar
7
comment What are the most popular sorting algorithms in practice?
quicksort is the most used largely because of it's simplicity, O(n log n) time and O(log n) space requirement
Mar
6
awarded  Nice Answer
Mar
6
comment How does a concurrent garbage collector deal with variables?
unless you add a flag in the object which keep whether it's already added to the queue, (which you clear along with the mark) so the mutator knows whether to add it in or not (and sets the flag when the object is added)
Mar
6
revised Prevent developers from using constants
added 140 characters in body
Mar
6
revised Prevent developers from using constants
added 8 characters in body
Mar
6
answered Prevent developers from using constants
Mar
6
comment How does a concurrent garbage collector deal with variables?
@JanHudec unless the threads work with the GC and can add objects to a to-mark queue, each time a thread reads a reference
Mar
6
comment How does a concurrent garbage collector deal with variables?
if after thread1 has read V and A isn't in a local variable of thread1 then A won't be reachable after thread2 modified V, so it will be ready for collection anyway
Mar
4
comment Is there a device still being sold that requires efficient programming? What is it?
DCPU16 designed by notch aka the guy who created minecraft (8 registers, 128kB memory and 100k Hz clock speed)
Mar
1
comment What can I do to maintain respect for a poorly written codebase?
in other words spend the time learning the area of the bug by refactoring it
Mar
1
comment What can I do to maintain respect for a poorly written codebase?
+1 for the last paragraph
Mar
1
comment How can I avoid mistakes using the same variable name again?
I knew someone would suggest hungarian ;)
Mar
1
comment How much usage of “likely” and “unlikely” macros is too much?
reeks of micro optimizing to me...
Feb
25
awarded  Caucus
Feb
24
answered Relation of CPU Hz's and network speed in clusters
Feb
24
comment Relation of CPU Hz's and network speed in clusters
it would only depend on the algorithm being calculated
Feb
24
comment How can my code structure be improved?
there is a codereview.SE for this
Feb
23
comment Convert an interpreter to a compiler?
first learn the target language, then see how you would translate the basic code blocks from your language into the the other language