in reply to Subroutines versus straight top to bottom scripts
How about comprehensibility?
Subroutines as short as possible; hopefully never longer than what fits on screen. Smaller is better ( < 20-25 lines?).
With subroutines, testing becomes easier or even feasible.
(And yes, reusability: you'll end up with subs anyway, if the script will have any life beyond running once.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Subroutines versus straight top to bottom scripts
by salva (Canon) on Jun 03, 2005 at 12:10 UTC | |
|
Re^2: Subroutines versus straight top to bottom scripts
by tilly (Archbishop) on Jun 04, 2005 at 06:44 UTC |