Reputation
3,655
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 10 19
Impact
~298k people reached

Oct
17
comment It's ok to study the C++ from a book that only support the 1998 version of standard?
... Although it is certainly true that many of today's best practices derives from Andrei's studies and publications
Oct
17
comment It's ok to study the C++ from a book that only support the 1998 version of standard?
@DirkHolsopple: One of the things I've leaned in 30+ more year of experience is "never use the word "definitive". Andrei's work was truly the predecessor of template metaprogramming. It is certaily good about the concepts, but it requires a review about the samples, at least because C++11 syntax can greatly simplify many of them (He make a lot of mortal-jumps to allow varadic template surrogates not anymore necessary, for example!). The point is to be aware of it. You can study Andrei's techniques, of course, but I would not recommend them as today's best practices...
Sep
6
comment What's so bad about pointers in C++?
@James: "it'll be your fault, not the designers" ... Good contract must result from a negotiation of both the parties. Breaking a "bad written" contract result in "bad" things, but is is much more a designer's fault, than user's fault. Remeber that design is clueless if no-one is able to use it. Good contracts inhibit improper use, don't punish after allow it. Punishment can make the designer satisfied, but if diffused has a "social cost" the designer also will pay. Do you get the metaphore?
Sep
2
awarded  Yearling
Aug
31
awarded  Good Answer
Aug
26
comment In C and C++, what methods can prevent accidental use of the assignment(=) where equivalence(==) is needed?
@James: ... not to mention it will not work for a == b !!
Aug
10
revised Is there a different usage rationale for abstract classes/interfaces in C++ and Java
added 79 characters in body
Aug
10
comment Is there a different usage rationale for abstract classes/interfaces in C++ and Java
@Martin: In "technical sense" you're right, but if you need runtime polymorophism (because the actual type of the instantiated objects depends on program input) a "root" ('a' is an article, not a shortcut for "one and only") is what makes all object "cousins", and the hierarchy run-time-walkable. Different roots originate different ancestries not each-other related. Whether this is "good" or "bad" is a matter of context, not idiom.
Aug
8
answered Is there a different usage rationale for abstract classes/interfaces in C++ and Java
Aug
7
comment Is STL implemented with OO?
... There is a difference between OOP terminology and C++ terminology. Back in the days when C++ had no other paradigm support than inheritance and virtual methods (no tempates and no lambdas) the two terminology could have been deliberately confused and used one in the place of another, but nowadays reducing OOP inheritance to just implement the OOP substitution principle is deliberately castrate the language.
Aug
7
comment Is STL implemented with OO?
@DeadMG: please note that the meaning of the term "composition" outside the OOP terminology has a precise meaning also in plain English. And inheritance (apart virtual method) is nothing more than "compose with an unnamed member". I undertand perfectly that OOP integralists don't like these facts, but C++ is not only a OOP langauge and inheritance as well as class composition are not just servicing OOP "is a" and "has a" relationships. ...
Aug
7
comment Is STL implemented with OO?
@KonradRudolph: true, but the question is about C++.
Aug
7
answered Is STL implemented with OO?
Jul
24
comment Should laying out a GUI graphically be considered “cheating?”
@TMN: The "real" Chuck Norris!
Jul
24
comment Should laying out a GUI graphically be considered “cheating?”
Real programmers write by copying from the console stream directly into the executable file the bytecodes they type one by one. Everything else (editor, compilers end so on) is "cheating".
Jul
21
comment What can programmers learn from the construction industry?
Given the subject, closed as "non constructive" sounds ... ironic!
Jul
12
comment What can be done to programming languages to avoid floating point pitfalls?
Everything will be perfect by replacing the word "integer" with "rational"-
Jul
12
comment Is saying “JSON Object” redundant?
@MasonWheeler: +1: Have you ever heard sentences like "... the TCP/IP protocol..."?
Jul
5
answered It's ok to study the C++ from a book that only support the 1998 version of standard?
Jun
27
answered C++ Iterator lifetime and detecting invalidation