Hey guys,
I was just wondering, how well does Teapot Wars represent production game code with respect to structure and cleanliness? Is it cleaner than average because it was published in a book? Or is it at/below average because of whatever reason?
The reason I ask is:
1) I find the elegance it to be quite appealing. After looking at a nightmare FORTRAN 77 code for 8 hours a day it is kind of treat to look at sane programming, and actually learn a thing or two! It would be kind of disappointing if most aren't so good.
2) I'm in the middle of re-implementing the STL to learn data structures and algorithms. I'm looking at the headers of the visual studio deque and the GNU deque, and its just not as clean. Some is cosmetic such as a weird indenting format, and some is for performance/standard compliance. For instance they basically call raw operator new and delete and manually call constructors and destructors. Sometimes they do a huge amount of stuff in one line, which I'm guessing is to "help" the compiler make some optimizations.
It's not very important. I was simply curious.
I was just wondering, how well does Teapot Wars represent production game code with respect to structure and cleanliness? Is it cleaner than average because it was published in a book? Or is it at/below average because of whatever reason?
The reason I ask is:
1) I find the elegance it to be quite appealing. After looking at a nightmare FORTRAN 77 code for 8 hours a day it is kind of treat to look at sane programming, and actually learn a thing or two! It would be kind of disappointing if most aren't so good.
2) I'm in the middle of re-implementing the STL to learn data structures and algorithms. I'm looking at the headers of the visual studio deque and the GNU deque, and its just not as clean. Some is cosmetic such as a weird indenting format, and some is for performance/standard compliance. For instance they basically call raw operator new and delete and manually call constructors and destructors. Sometimes they do a huge amount of stuff in one line, which I'm guessing is to "help" the compiler make some optimizations.
It's not very important. I was simply curious.