[Gllug] ADVERT: Shell Scripting book

Alain Williams addw at phcomp.co.uk
Wed Jul 20 09:16:15 UTC 2011


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.

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
#include <std_disclaimer.h>
--
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list