10 Feb 2010 (updated 10 Feb 2010 at 20:36 UTC)
»
redi,
IlyaM:
Ilya, your reaction to the C++ code you saw may (
pace
Jon) be
right. There are heaps, mountains, planets of bad C++ code
out there. Most of it probably comes from former (and
current) Windows coders and Java coders. It's no harder to
write good C++ code than good C code, but they seem
disinclined to do it, or don't know how. C presents fewer
temptations to bad coding than C++, but fewer tools to write
powerful code. When you find a C++ library packed with
virtual interfaces, "get" and "set" members, redundant
constructors, and operator overloads, what you're seeing is
probably just the product of procrastination.
A month ago I quit drinking (green) tea. Now my ADD is
gone. I started twelve years ago because I was
persuaded that it was "good for me". If you don't have ADD,
dropping caffeine might not do you much good. If you do
have ADD, have you tried that?