Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 CamelCasing a Constant: Acceptable Practice?
#3
As general rule all constants are written in upper case in almost all languages. If you are working with rmxp/rmvx scripts, and if you take into account that class names are constants in ruby, you should use: This_Is_A_Constant. However there are some constants in rgss/2 that are written in uppercase, like Input::SHIFT and else.
If you are working with some existing library or codes, you should addapt your code to match these library coding standard. If you aren't, create your own, but make it readable and mantain it constant.
Reply }


Messages In This Thread
CamelCasing a Constant: Acceptable Practice? - by vgvgf - 02-17-2010, 03:22 AM



Users browsing this thread: