Dave Lorde
Posts: 8
Nickname: dlorde
Registered: Aug, 2005
|
|
Re: The Uncommon Case
|
Posted: Jun 18, 2007 3:54 AM
|
|
I always find myself looking for problems and thinking "What could go wrong?" and "What would break this code?", so I tend to spend more time on this than on the rest. But edge conditions are important, so I feel it pays off.
If people are failing to use intefaces correctly, it may be carelessness, e.g. not reading the documentation carefully - but I've seen plenty of poorly specified interfaces that are counter-intuitive or complicated to use. A much neglected problem is poor naming - names enable us to visualise how an API works, and what a class, method, or variable does, and poor naming can seriously impair understanding of code.
|
|