3 ms·
Interesting that Sid's code is "old school" and the C++ guys don't like it. I wonder if he uses C.
by wglb 17y ago
Interesting that Sid's code is "old school" and the C++ guys don't like it. I wonder if he uses C.
- garnet7 17y agoI'll bet it's some tight subset of C++, leaving out some of the more "advanced" features.
- pmiller2 17y ago>I'll bet it's some tight subset of C++, leaving out some of the more "advanced" features. Isn't that just the definition of sane code when it comes to C++? Personally, I despise C++ for a number of reasons that I won't go into in this comment. OTOH, if the subset of C++ you use is roughly "C with classes and namespaces," then I can generally tolerate it.
- vegai 17y agoGenerally speaking, anything the C++ guys don't like is good.
- thras 17y agoI'm curious, have you seen enough C++ to know the differences between 1990's C++ and 2000's C++, and really prefer 1990's C++ because "C++ guys don't like it"?
- dtf 17y agoFunny, I read "old school" as a kinder euphemism for shoddy (with all due respect to Sid's brilliance as a designer and hacker). Sometimes great people write crap, unmaintainable code. I've known several types like this in the industries I've worked in. You need a small army of programmers who can respect coding standards to clean up after them. As for C++, I've looked at some of the Civ 4 source and it seems fairly industry standard "game style" C++. It uses templates, but not heavily, and some boost to provide Python scripting.
- pchristensen 17y agoI've heard the same thing - brilliant people can hold more in their head, so they can read and manipulate more complex code. They don't need to simplify and refactor as much as mere mortals do, and because they're so focused on results, they get something out as soon as it's done.
- allenp 17y agoI'm guessing it is more like he uses a lot of arrays and simple structs and the C++ guys want everything in classes, stuff like that.