Re: Idiots
Leigh Johnston wrote:
"Paavo Helde" <myfirstname@osa.pri.ee> wrote in message
news:Xns9D5AC59842A28paavo256@216.196.109.131...
"Leigh Johnston" <leigh@i42.co.uk> wrote in
news:bZednVFnQ6c3TVjWnZ2dnUVZ8vydnZ2d@giganews.com:
Some of the idiotic things that regulars of this newsgroup advocate:
1) Don't use the unsigned integral types despite the fact that the C++
standard library is full of their use.
Yes, as this creates an opportunity to introduce some hard-to-detect
bugs.
2) Don't use abstract interfaces (as they advocate against using
public virtual functions).
Yes, as it makes augmenting and changing the virtual function interface
more cumbersome and thus creates an opportunity to introduce some hard-
to-detect bugs.
3) Never derive from standard containers despite the fact that
interface augmentation is useful.
Yes, as this creates an opportunity to introduce some hard-to-detect
bugs.
Your point repeated three times seems to be that you shouldn't use
certain language features / idioms because of the potential to create
bugs. Your point is invalid for the simple reason that there is a
potential to create bugs using *any* language feature or idiom. I would
say though that if a certain language feature / idiom is more likely to
cause the creation of bugs than another language feature / idiom then
there should be a caveat yes but not a prohibition (unless the language
feature or idiom is genuinely invalid for 100% of cases).
All generalizations are wrong(TM). Absolutes never make good sense(TM).
There *is* no spoo^H^H^H^Hprohibition, don't you see? You seem to
leave out this very important part of any recommendation given by the
"regulars of this newsgroup": "...unless you know what you're doing" or
"...unless the situation calls for it". Compare: "Don't use abstract
interfaces" and "Don't use abstract interfaces unless it's the most
straightforward way to achieve your goal".
So, take a large piece of paper, a thick marker, and write on the paper:
/Thou shalt not twist the words of the wise/. And mark it with the
number 11 (you can use XI if you prefer). And hang it on the wall that
is in front of you when you are online.
The argument (you seem to be having with the "regulars") isn't worth the
shell of an eaten egg (Russian idiom, I can't find an equivalent in
English). It appears that your argument is for the sake of an argument,
and not an attempt to get to the truth of the matter. Go fry an egg!
(no disrespect is intended and no offense is meant)
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask