[Gllug] ADVERT: Shell Scripting book
John G Walker
johngeoffreywalker at yahoo.co.uk
Wed Jul 20 13:37:25 UTC 2011
On Wed, 20 Jul 2011 10:16:15 +0100 Alain Williams <addw at phcomp.co.uk>
wrote:
> On Wed, Jul 20, 2011 at 01:50:20AM +0100, Steve Parker wrote:
>
> > If a programmer needs a variable name to be complete sentence, they
> > are probably doing something wrong.
> > IMHO
>
> There is a difference between a ''complete sentence'' and ''more than
> one word''.
>
> Eg take the following possible variable names for the same thing,
> which one tells you what it contains:
>
> last
> time
> update
> LastUpdateTime
> last_update_time
>
> I would suggest one of the last 2 - which one according to preference.
> I have seen people who use embedded capitals for global variables & _
> in variables local to a function.
>
This is what I meant by "a sentence". It's a somewhat jokey reference
to meaningful variable names from someone who started programming back
in the day when you'd find such mysterious names as
LUPTM
for the above (upper case because printers didn't have lower case
letters back then), usually in a program that you had to read for the
first time, debug, recompile (using tapes) and test before tonight's
production run,
--
All the best,
John
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list