Which looks easier to read
ALAN1=/etc/conffile
ALAN2=/tmp
ALAN3=/usr/bin/apache
or
CONFIG=/etc/conffile
TEMP=/tmp
DAEMON=/usr/bin/apache
Image this 5000 lines of code down when you see code like this:
read $ALAN1
open $ALAN2/file
exec $ALAN3
or
read $CONFIG
open $TEMP/file
exec $DAEMON
Poor Alan, maybe I should switch it to JOHNDOE1 :)
-Bill
On Fri, 2005-02-18 at 14:02 -0700, Jim B wrote:
> I am not a programmer but can you explain what is wrong with $ALAN1, $ALAN2 etc?
>
> Just the fact that his name was in them?
>
>
> Jim
>
> Every variable in the entire script was $ALAN1, $ALAN2,
> > $ALAN3, $ALAN4, $ALAN5, etc... up to about $ALAN80 He wanted to ask me
> > a quick scripting question and I took a look at the script and almost
> > strangled him on the spot.
> >
> > --
> > Bill Warner <wwarner42@cox.net>
> >
> > ---------------------------------------------------
> > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> > To subscribe, unsubscribe, or to change you mail settings:
> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> >
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
--
Bill Warner <
wwarner42@cox.net>
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss