Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

variable name standard for jsp  RSS feed

 
albert sie
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to ask for any expert at here. now i want to standard of the variable name in my program. anyone at here can suggest to me what standard i need to follow in order to make i easy to do maintenance and easy to distribute into different level variable name in program . thank you

regards,
albert
 
Bimal Patel
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You can use the same pattern used in java classes. Like String strXYZ or some more meaningfull name. First word's first character would be lowercased and for the subsequent words, the letter should be uppercased. This is on based upon my experience on java so far.
 
Kj Reddy
Ranch Hand
Posts: 1704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use same naming convention you use for Java classes.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!