IEschewEmbeddedCapitalLettersInNames
ToMyProseOrientedEyes
TheyAreTooAwkwardToReadComfortably
TheyJangleLikeBadTypography
.'
(TheAntiPike)$gotit
are probably ok, use underscores to
separate words. It is generally easier to read $var_names_like_this
than
$VarNamesLikeThis
, especially for non-native speakers of English. It's
also a simple rule that works consistently with VAR_NAMES_LIKE_THIS.$ALL_CAPS_HERE constants only (beware clashes with perl vars!) $Some_Caps_Here package-wide global/static $no_caps_here function scope my() or local() variables
$obj
->as_string().Forward to On the Naming of Names (Content)
Back to The Art of Commenting Code
Up to index
Copyright © 1998, Tom Christiansen
All rights reserved.