C++: Difference between revisions
Jump to navigation
Jump to search
Created Tips section |
No edit summary |
||
| Line 2: | Line 2: | ||
===Minimize includes in headers=== | ===Minimize includes in headers=== | ||
to write (reasons: compilation speed, robustness, debugging, wrapping) | |||
===Minimize use of macros=== | ===Minimize use of macros=== | ||
| Line 12: | Line 14: | ||
===Put comments in the appropriate place=== | ===Put comments in the appropriate place=== | ||
===Don't reinvent the wheel=== | |||
boost | |||
numerical especially important: lapack | |||
Revision as of 23:16, 7 December 2009
Tips
Minimize includes in headers
to write (reasons: compilation speed, robustness, debugging, wrapping)
Minimize use of macros
inline functions, overloaded functions or templated functions
Prefer iostreams to printf and scanf
Don't ignore compiler warnings
Put comments in the appropriate place
Don't reinvent the wheel
boost
numerical especially important: lapack