DISCLAIMERS: While the author strives to mantain a somewhat neutral point of view (in places), the articles contianed within also contain a healthy dose of opinion, cynicism, and seething hatred* as…
Washu: You are more likely to find undefined behavior in a C++ program than to not. xFFFF0000: But that is just like saying that you are more likely to find bugs in a C++ program than not. Washu: Both…
…
Similarities There's a common misconception that the C++ keywords class and struct are more different than they really are in C++. The origin of this myth arises from C++'s C heritage. In C, there was…
Some notes on keeping your code clean and readable. On naming conventions There are many naming convention decisions, some important, some not. Here's a quick run down on my takes of them: Word…
MaulingMonkey on #gamedev on irc.afternet.org
Documentation Links MSDN std::basic_string Documentation Boost and Strings tokenizer string manip functions external link to boost::spirit C++ Strings vs C Strings Performance woes of C strings …
Dependency Injection (or DI for short) is a method of Inversion of Control — a method to help reduce class dependencies. In the case of Dependency Injection, it removes the need for the class itself…
Example class DI_Server { std::ostream* log; public: DI_Server(): log(0) {} DI_Server( std::ostream log ): log( log) {} // constructor injector void log_to( std::ostream new_log…
C++ Errors and Solutions error C2011: 'T' : 'class' type redefinition — see C++ Include Guards
Joke Errors: WCOMPREND: The spelling, grammar, or terminology of your signal has fallen to the point that it severely degrades MaulingMonkey's ability to comprehend it. Failure to improve the signal…
Various code examples.
Official Website http://www.gamedev.net/ Official IRC Channel #gamedev on irc.afternet.org My Handle There MaulingMonkey Topic Taboo Response Information (Unofficial communal rules) …
You've been directed here because of one of the following: You've asked a taboo topic on the #gamedev IRC channel or on the forums. You've asked your topic in a taboo manner You're wondering why we…
One of the great double-edged swords of programming. Advantages On the plus side, having a global that's accessible from anywhere slightly simplifies coding when you only have one of something — it…
Global variables can be accessed throughout the entire program. This is their benefit and their drawback at the same time — code depending on global variables is innately tied to that single…
Chances are, I need more information, if I'm linking you to this page. I need your error messages. This might seem obvious to most, but not to all. They have meaning, and if they don't tell you…





