Re: [GD-General] Compile times
Brought to you by:
vexxed72
From: Javier A. <ja...@py...> - 2002-12-10 13:21:24
|
Brian Hook <bri...@py...> wrote: > And C++ hierarchies, to coin a phrase from Scott Bilas, tend to > "harden" over time. Yeah, make as little use of hierarchies as possible. In general, avoid any kind of dependencies between your classes. It's a code design issue, not so much a C++ issue. (read below) > But in the process of writing them > in ANSI C and acutely examining the dependencies that existed, I > found that I was writing MUCH cleaner code, and not just because I > expected others to read the code. I believe this has more to do with your experience in both languages than anything else. You've huge experience writing C code, but (from what I can infer) little experience working with large C++ codebases. What's worse, C++ can be badly used in more varied and obscure ways than C or other simpler languages, and some design philosophies even encourage these uses. Flat hierarchies, single inheritance and interfaces all make your life damn easy. Javier Arevalo Pyro Studios |