Link Details

Link 93946 thumbnail
User 285573 avatar

By alashcraft
via codethinked.com
Published: Jul 10 2008 / 15:03

There is an acronym that has been thrown about quite a bit in most agile development circles (and elsewhere) and that phrase is YAGNI. In case you don't know, it means "You Ain't Gonna Need It". The idea is that any time you spend implementing something that you don't end up needing is wasted time, so don't do it, because "You Ain't Gonna Need It"! Now, while this phrase doesn't quite jibe with what I am talking about, I want to introduce a new and related phrase.
  • 17
  • 1
  • 865
  • 268

Comments

Add your comment
User 281687 avatar

paul_houle replied ago:

0 votes Vote down Vote up Reply

Hell yeah.

The primary principle in error handling should be to minimize the amount of (i) coding, and (ii) thinking that goes into error handling. The reason for that is that every decision made in developing error handling logic is another opportunity to make a mistake that can affect both the program's mainline (introduce an error when there wasn't any) and error paths (make an error have worse consequences than it should.)

Programmers should decide ahead of time on some generic safe, sane and largely correct error handling practices that can be implemented with minimum code and reuse.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.