Whats A Good Way To Name Variables In Your Scripts

RegisterLogin
Whats A Good Way To Name Variables In Your Scripts
Post Description: Whats A Good Way To Name Variables In Your Scripts
Tags: Whats, A, Good, Way, To, Name, Variables, In, Your, Scripts
This Post Was Posted On May 23, 2008 By Webune #1442
when you are writing scripts, at some point or another you will have to name your variables in your scripts. so whats the best way to call them. well, here are some tips i keep in mind when i do my programming, this is an example:

example_variable
ExampleVariable
example-variable

as you can see there are three ways you can name your variables using the dash in between, is this a good idea. i think it is, but you can also use an underscore symbol to separate your words. yet another trick to name your variables when you have multiple words is to use capitalization.

does this help you?
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
©2011 Webune Forums - Wed Dec 21, 2011 6:06 pm
Powered by: Webune Forums V3