Thursday, August 20, 2009

Lemur Toolkit .... A shining example of bad programming practices

1. How to create a function that create memory and tell the caller to delete it (using comments in the code)
2. How to make member function "const" functions and to allow them to modify member attributes, call them "mutable"
3. How to use dynamic cast to see what object is coming in
4. How to contain a class within the other so as to "hide" some useful functionalities. For example, contain a list class and hide the "add" functionality

This list is bound to grow

No comments:

Post a Comment