Where does one start in all of this?

Started by
9 comments, last by GameDev.net 24 years, 7 months ago
Jordan,
Practical C++ is a really great book for some in-depth analysis of C++, including what kinds of pitfalls the language has. I do have one suggestion: DON'T LEARN TO CODE LIKE THAT GUY!
The author has really HORRIBLE variable names that make his code difficult to understand.

A few quick examples:
(on p. 139)
void summfunct {
LETHAL omigosh(cout);
... ...
if(... ...) // GREAT BIG OMIGOSH
omigosh.s() << ... ...;
}

another example, on p.74:

class alpha {
public:
alpha beta(alpha numeric);
const alpha *gamma(const alpha&) const;
void delta(int);
int theta(const);
private:
int sigma;
char * tau;
aleph null;
eta pi;
alpha *omega;
};
alpha particle;

I could go on and on page after page, but
as you can see, this stuff is hardly comprehensible.
Seems like this guy needs to go read some of Steve McConnell's books, such as Code Complete.
Whatever you do, just don't adopt his style.

-Justin Hust

This topic is closed to new replies.

Advertisement