5,370 reputation
11528
bio website codeproject.com/Members/…
location
age
visits member for 4 years, 2 months
seen 13 hours ago

Feb
6
awarded  Populist
Jan
31
awarded  Yearling
Jan
22
answered Injecting dependencies (DI) in c++ applications
Jan
13
comment How do you pronounce 'char' keyword?
@gnat it would exclude Java et all only if they inherited "char" from some language other than C. If the creators of C invented char, they decide how it is pronounced.
Jan
13
comment How do you pronounce 'char' keyword?
@gnat: Bjarne worked at AT&T labs with Dennis Ritchie and Ken Thompson who invented "char" - he heard them pronouncing it.
Jan
13
comment How do you pronounce 'char' keyword?
Not opinion-based at all. Here is the reference from Strustrup: stroustrup.com/bs_faq2.html#char
Feb
26
awarded  Good Answer
Feb
22
awarded  Good Answer
Jan
31
awarded  Yearling
Jan
6
comment Comparison of IDEs for C++ and C development on Linux: KDevelop, Eclipse, NetBeans, CodeBlocks and Anjuta
@Sergei Sorry, ctags does not support that. You may have better luck with something like YCM: github.com/Valloric/YouCompleteMe
Jun
7
comment Programming Style in Large Scale C++ Applications
More general functions that are meant to be used from different places are, as you say, best grouped together via namespaces. For instance, take a look at Boost libraries.
Jun
7
comment Programming Style in Large Scale C++ Applications
toHtml() is just a helper function (poorly named, IMHO), that is used just to add some HTML tags to the help text. It does not need to be visible outside the module where it is declared, as it can't be used from there anyway. Ideally, it would be even more hidden, as it is called from exactly one place - for instance a nested function in languages that support them.
Jun
7
answered Programming Style in Large Scale C++ Applications
Jun
4
awarded  Good Answer
Jun
4
awarded  Nice Answer
Jun
3
answered Solo developer vs. team developer : should I move on?
May
26
awarded  Cleanup
May
9
awarded  Nice Answer
May
9
comment Why is there no 'finally' construct in C++?
@Mikey: The problem is that too many people write C++ in Java-like style. See this text for more info: codeproject.com/Articles/38449/C-Exceptions-Pros-and-Cons#3_2
May
9
comment Why is there no 'finally' construct in C++?
@Mikey: I know very little about Delphi, but AFAIK it only supports heap-based objects - is this correct? If so, you still need to manually call Free to call the destructor. With C++, you have stack-based objects that are destroyed automatically and trigger the cleanup.