|  | Posted by Chung Leong on 07/26/06 03:25 
Shelly wrote:> I disagree.  Look at Java.  There is a definite set of conventions there
 > that readily identifies what kind of thing a name represents.  For example,
 >
 > theName               is the name of a variable
 > TheName              is the name of a class
 > THENAME          is the name of a constant
 >
 > I think that (a) the case sensitivity is useful and (b) it makes the code
 > easier to read (when doen properly).
 >
 > Shelly
 
 That's necessary, of course, only because a special character isn't
 employee. I think PHP/Perl got it right in this regard. $var is
 unambiguous and stands out.
 
 To bring something new to this tired debate: In my PHP fork I
 implemented what I call flex-case. The interpreter will spot word
 boundaries per CamelCase rule in identifiers and insert underscores
 into them. So $theName is the same as $the_name, and FileGetContents()
 is the same as file_get_contents(). Might seem kind of weird but it
 works quite nicely in practice.
  Navigation: [Reply to this message] |