AEghost
|
  |
| Joined: 03 Feb 2010 |
| Total Posts: 1423 |
|
|
| 11 May 2012 04:53 PM |
In another thread people thought my all CAP variables was odd. I think it makes it look pretty and easy to read and understand. EX: NUMBER1 = 45 NUMBER2 = 50 print(NUMBER1+NUMBER2)
How do you like to do your variables? |
|
|
| Report Abuse |
|
|
|
| 11 May 2012 04:56 PM |
| I usually do nocapsatall for variables and camelCase for functions |
|
|
| Report Abuse |
|
|
xSIXx
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 9202 |
|
|
| 11 May 2012 04:59 PM |
| i like them lowercased and with tacos. |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
| |
|
LocalChum
|
  |
| Joined: 04 Mar 2011 |
| Total Posts: 6906 |
|
|
| 11 May 2012 05:23 PM |
| PascalCase all the way for everything. |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
| |
|
AEghost
|
  |
| Joined: 03 Feb 2010 |
| Total Posts: 1423 |
|
| |
|
NeonBlox
|
  |
| Joined: 19 Oct 2008 |
| Total Posts: 1462 |
|
|
| 11 May 2012 05:59 PM |
| I use camelCase. I don't know why, it must be a personal opinion. |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 11 May 2012 06:05 PM |
| @oysi: For short; camelCase. |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
| |
|
8SunTzu8
|
  |
| Joined: 30 Sep 2011 |
| Total Posts: 8199 |
|
|
| 11 May 2012 06:57 PM |
ISpawnI
IISpawnII
IIISpawnIII
IVSpawnIV
VSpawnV
VISpawnVI
VIISpawnVII
VIIISpawnVIII
IXSpawnIX
XSpawnX
I use roman numeral counting for some values, mostly because have SpawnI, SpawnII, SpawnIII, etc... already, as well as ISpawn, IISpawn, and IIISpawn, etc...
Then I used numbers, Spawn1, Spawn2, Spawn 3. It's an easy to remember system that allows me to refer to many things quickly.
But, most of the time, for simpler values, I use a relating word or phrase for values, cased as such: Teleports, TeleportLocation, DefaultSpawnLocation, SpawnLocation1, p, d, Del, Delete, Destruct.
I use lower case letters in for loops. |
|
|
| Report Abuse |
|
|
|
| 11 May 2012 07:16 PM |
| I use PascalCase. camelCase bothers me for some reason, and I have no idea what that reason is. |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 11 May 2012 07:23 PM |
Yeah. I use ParscalCase, because most of ROBLOX is standardized to it.
But my Variables look like this:
DoorThreeDebounce
or
NetworkConnectionCreateImplimentation
or, if it's in a smaller scope
NetworkImpl
or, if it's even smaller
n |
|
|
| Report Abuse |
|
|
|
| 11 May 2012 09:50 PM |
I use letters for my variables and if I run out I just add letters together.
A = 12
B = 21
print(A+B) |
|
|
| Report Abuse |
|
|
| |
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
|
| 11 May 2012 09:53 PM |
PascalCase for Lua. camelCase for Java. |
|
|
| Report Abuse |
|
|
|
| 11 May 2012 09:53 PM |
@Lord
That's why I right down what each of my variables are so I know not to reuse them. |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 May 2012 10:00 PM |
This thread is about "How do you like your variables?" not the "why the other person who writes is variable differently then yours is a useless way." Learn to stay on topic
and also when I say if I run out of letter together. That means I start using words like as or cat or supercool as variables. Learn to read or GET OUT! |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 May 2012 10:03 PM |
1: It does not matter who was here first.
2: True and I respect that, but please don't go around shooting people down.
3: I like simplicity. It easier for me to read what I am scripting. |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 May 2012 10:07 PM |
1: I'm sorry you just upset me.
2: I accept your apology, and I hope we could be...friends....maybe
3: ehhh i got nothing. |
|
|
| Report Abuse |
|
|