Preprocessor Directives

02 Apr 2005

Avner Kashtan is talking about use of code such as this:

#if (DEBUG)
void Serialize(...)

He says it's useful for unit testing. Maybe so... but it's very ugly and if you were using it a lot it would make the code unreadable, and so fairly unmaintainable.

Feedback or questions on this post? Create an issue on GitHub.