News for hackers. Stuff that matters.
Re:Never trust a programmer who says he knows C++ by d0m on Tuesday March 30, 2010 @07:32AM (#1228841)
It's a way to avoid a 100% only (and closed mind) C++ programmer. Understanding the cost of a virtual function is something. Not understanding that in most situation this cost is trivial, is something else. And every C++ great programmer should know that C++ is archaic and that higher level languages exist. If someone only knows C++, he is a C++ programmer, not a programmer.
Re:Never trust a programmer who says he knows C++ by tspiteri on Tuesday March 30, 2010 @08:37AM (#1228943)
Virtual functions are helpful only when you have derivation and need some common interface. When your class is not meant to be derived from, declaring functions as virtual is just plain misleading. And I am strongly against fitting everything artificially into a class hierarchy, that is, I dislike using the OOP sledgehammer for every simple class.

Also, great C++ programmers are those who use C++ in a problem domain matched to it, not those who use C++ where Perl or Python or something else is so much better. So they know that C++ is not archaic at all, it is just not suitable for every job, but then, what language is?

Re:Never trust a programmer who says he knows C++ by huherto on Tuesday March 30, 2010 @11:00AM (#1229285)
IMO, you shouldn't dismiss a candidate as close minded with one question. If you have fears that he only knows C++ and doesn't care about higher level languages, you should digg into that with other questions.