Re: Code reading/Understanding - A general question
On Jun 1, 6:31 pm, "Jim Langston" <tazmas...@rocketmail.com> wrote:
<boki_...@hotmail.com> wrote in message
news:1180692154.235076.36400@g4g2000hsf.googlegroups.com...
I am looking for an advice on following:
I have that "pleasure" of reading C++ codes that have been written by
person(s) that have not attended the same C++ classes that I did or
have not read the same C++ books that I have read. This kind of
people has written some parts of the code that use notations that I am
not familiar with (and that probably also includes also 50 % of other C
++ programmers).
[...]
There are basically only a few things that makes up C++ code, keywords,
operators, syntax, function calls and the STL. If you come across one you
don't understand then you can try googling for it or asking it here or
alt.comp.lang.learn.c-c++. For more simplistic questions
alt.comp.lang.learn.c-c++ may be better since there no one asks you "and
just what book are you reading that doesn't explain xxxxxx" which I've
always considered a bit rude.
One such example is an initialiation list which is one of the more freque=
nt
sytnax questions:
class Foo
{
public:
Foo( int bar ): Bar_( bar ) {}
private:
int Bar_;
};
Without a book explainging initialization lists that is not easy to
understand.
If he learned C++ from a book that didn't explain initialization
lists, he should find another book. It's a basic part of C++,
and their use is required in all of the coding guidelines I've
ever seen.
It would be interesting to see what sort of notations he's
talking about. It would give us a better idea of the books he's
read, and where he should go from there.
--
James Kanze (Gabi Software) email: james.kanze@gmail.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34