[ale] Making the argument for many scripts vs one big one.

Derek Atkins warlord at MIT.EDU
Wed Jul 24 12:39:55 EDT 2013


JD <jdp at algoloma.com> writes:

> I've written commercial installers in Borne shell. Didn't have any choice. I
> always felt "dirty" after.
>
> The key things to reducing bugs in any language is using functions AND no
> function should be larger than 1 screen (including comments).  5-20 real lines
> of code tops, plus checking the return code for EVERY call.

set -e is your friend.

-derek
-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the Ale mailing list