23,453 reputation
43295
bio website
location
age
visits member for 3 years, 9 months
seen yesterday

Author of C++ tutorials and Wide language.

Foo


Aug
18
comment Implementation of instance testing in Java, C++, C#
I downvoted your question because the implementation details vary substantially between languages and even different versions of the same language. The "accepted answer" doesn't even begin to cover two-thirds of the question.
Aug
15
comment Should we only catch in exceptional circumstances?
@BartvanIngenSchenau: Seems perfectly reasonable to me that the user made a mistake and tried to work with a file that he thought he created but got put in the wrong directory or he accidentally deleted or something.
Aug
14
comment Should we only catch in exceptional circumstances?
It's perfectly non-exceptional to imagine that a file might not exist.
Aug
14
revised Should we only catch in exceptional circumstances?
added 158 characters in body
Aug
14
answered Should we only catch in exceptional circumstances?
Aug
12
revised How does std::string in c++ allocate memory?
edited tags
Jul
29
answered Are there technical limitations or language features that prevent my Python script from being as fast as an equivalent C++ program?
Jul
21
comment Eliminating Magic Numbers: When is it time to say “No”?
Well, arguably, the number of seconds in a day changes all the time. Just not very much.
Jul
15
comment Have there been studies on the effectiveness of OOP in managing software complexity?
There's no way to genuinely measure it- it's a quantum effect where measuring it influences the result.
Jul
12
comment How to handle divide by zero in a language that doesn't support exceptions?
My language is targetted at novices... therefore I will make them manually check for error all the time in every function call instead of having the compiler/runtime do it? Interesting logic.
Jun
28
answered Why would a C executable be smaller when compared to C++ executable
Jun
26
awarded  Nice Answer
Jun
23
comment Retrying a statement or call in a catch block - code smell or anti-pattern?
The return values of those methods cannot be trusted, since the filesystem can be mutated by other processes asynchronously. Using them creates a race condition. It's one thing to check them quickly beforehand and another to design your code around the diea that they always produce results you can depend on.
Jun
22
revised Understanding Arithmetic In C
edited tags
Jun
18
comment Is storing pointer (of new'd object) in static collection from object constructor a common idiom in C++
Singleton is not an idiom. It is an idiot filter.
Jun
18
answered Is storing pointer (of new'd object) in static collection from object constructor a common idiom in C++
May
30
answered Benefits of porting C library to C++
May
30
comment Benefits of porting C library to C++
All main C++ compilers can disable EH handling, and modern EH is zero-cost.
May
6
awarded  Necromancer
May
1
answered Why don't more languages have the ability to compare a value to more than one other value?