How Do I Make This Hard to Misuse?
Posted Apr 1, 2008 5:41 UTC (Tue) by
jd (guest, #26381)
Parent article:
How Do I Make This Hard to Misuse?
A few others:
- Types should cover the legal values and as little beyond that as efficiency constraints permit
- Know thine invariants (...and preconditions ...and postconditions)
- The argument list should be what is needed by the code and nothing more, in content and format
- A clean solution is superior to an oblique one, insofar as a clean solution exists
- An oblique solution is superior to an oblique bug
- If it doesn't work when compiled and optimized, but tests fine the rest of the time, you are testing what you are thinking and not what you are coding
(
Log in to post comments)