Reputation
3,279
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 10 30
Impact
~97k people reached

  • 0 posts edited
  • 0 helpful flags
  • 215 votes cast
Apr
17
comment What is an algorithm?
@Apalala so what stops you from redefining it for the sake of clarity or, say, better understanding of its essence? Algorithm as a "set of instructions" says almost nothing to me.
Apr
17
comment What is an algorithm?
I liked this answer a lot, and I think we could take it a bit further and say (though not related to the original question): any algorithm is an optimization of a brute force/tree search solution. Was wondering if it can be proven formally.
Apr
16
answered Should I re-architect client's web app?
Apr
10
answered Employee vs Contractor mentality and career
Apr
8
answered “As” Naming Convention
Mar
18
revised I'm trying to understand hash tables - can someone explain it to me - clearly?
deleted 2 characters in body
Mar
18
revised I'm trying to understand hash tables - can someone explain it to me - clearly?
added 1 characters in body
Mar
18
answered I'm trying to understand hash tables - can someone explain it to me - clearly?
Feb
22
answered Variable names: underscores, no underscores, or camel case?
Dec
23
comment Is there any reason to use C++ instead of C, Perl, Python, etc.?
@Konrad Rudolph: please see my ohter answer above, but actually you may be right regarding garbage collectors: I'm not sure they can handle reallocations of pointers. But then it depends on the GC. Some very simple ref-counted GC's can do fine (PHP comes to mind).
Dec
23
comment Is there any reason to use C++ instead of C, Perl, Python, etc.?
@Neil G: unfortunately it's not only POD vs non-POD. The problem is that in C++ a vector element can contain pointers to locations that potentially may be affected by realloc(). The only way of keeping these pointers up to date is copying elements (during resizing of a vector), and calling copy ctors. There is no way in C++ for the vector implementation to know if a vector element in fact contains such pointers or not.
Dec
22
comment Is there any reason to use C++ instead of C, Perl, Python, etc.?
no performance overhead at runtime - that's not always true. If you look at STL vector implementations you will see that they don't take the advantage of using realloc() (they can't because of pointers, long story) whereas all higher-level languages that I know can and do use realloc() in vector impl's. This is just one example that it's not that obvious and all black-and-white.
Nov
28
answered C++ code navigation on OS X
Nov
25
comment Why do large IT projects tend to fail or have big cost/schedule overruns?
One curious thing about this problem is that you usually get completely different answers from developers and from managers.
Nov
25
awarded  Nice Answer
Nov
24
revised How to write “good” unit tests?
deleted 5 characters in body
Nov
24
answered How to write “good” unit tests?
Nov
20
comment “Gödel, Escher, Bach” still valid today?
@Frank Shearar: looking at GEB:EGB I wonder why he didn't call it BGE:EGB (never finished the book itself to be honest)
Nov
20
comment Which are the significant algorithms for humankind in past decades?
Exactly and I think the basic compression algorithm LZW can be considered one of the most beautiful algorithms in software engineering.
Nov
17
comment Copyright notices/disclaimers in source files
I think I understand that, but why should legal notices be put in each source file? Or if they shouldn't then why do people do it?