In some cases, errors are introduced when temporary objects are created. It is important to keep this in mind when writing code, It is especially inappropriate to have pointers to temporary objects, since the lifetime of a temporary object is undefined. No copy constructor executed. 47 Avoid long and complex functions. Generally, it can be said that a function should not be longer than two pages, since that is about how much that can be comprehended at one time.
Complex functions are difficult to test.