Jump to content

variable type naming convention


apostolakisl

Recommended Posts

Posted

I like it when names of things tell you what they are right off, or at least quickly remind you of what you might have learned in the distant past.

 

To that end, I was wondering if it wouldn't make more sense to name the "state" variable "trigger" variables since they are capable of triggering a program. Or something else along those lines.

  • 1 month later...
Posted

.... and enforce some distinct naming feature.

 

I currently add a leading "_" (underscore) to each state (trigger) variable, that is the only non-alphanumeric I can add it seems.

 

* Orest

Posted

From past programming experiences, I use a lower case i for interger and lower case s for state (e,g, $iAway, $sHome).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...