in reply to Re: Re: Defensive Programming
in thread Defensive Programming
Nevertheless I do think that "the smaller part of a conditional should go first" is a correct rule of thumb. If you have a 4 line block and a 40 block then the 4 liner should go first. This means the maintainer can see all of one and part of the other on one page, whereas with the long block first the maintainer can only see part of one block, and may not even notice the presence of the smaller one.
Yves / DeMerphq
--
When to use Prototypes?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 4: Defensive Programming
by tilly (Archbishop) on Jan 14, 2002 at 23:38 UTC | |
by demerphq (Chancellor) on Jan 15, 2002 at 13:56 UTC |