generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How do you like your variables?

Previous Thread :: Next Thread 
AEghost is not online. 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
DrAgonmoray is not online. DrAgonmoray
Joined: 29 Jul 2008
Total Posts: 17428
11 May 2012 04:56 PM
I usually do nocapsatall for variables and camelCase for functions
Report Abuse
xSIXx is not online. xSIXx
Joined: 06 Aug 2010
Total Posts: 9202
11 May 2012 04:59 PM
i like them lowercased and with tacos.
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
11 May 2012 05:08 PM
camelCase or PascalCase.
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
11 May 2012 05:23 PM
PascalCase all the way for everything.
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
11 May 2012 05:25 PM
^

Same.
Report Abuse
AEghost is not online. AEghost
Joined: 03 Feb 2010
Total Posts: 1423
11 May 2012 05:54 PM
I am an outlier I see :(
Report Abuse
NeonBlox is not online. 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 is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
11 May 2012 06:02 PM
[ Content Deleted ]
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
11 May 2012 06:05 PM
@oysi: For short; camelCase.
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
11 May 2012 06:10 PM
[ Content Deleted ]
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
11 May 2012 06:13 PM
☺
Report Abuse
8SunTzu8 is not online. 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
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
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 is not online. 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
kungfuman32 is not online. kungfuman32
Joined: 12 Dec 2008
Total Posts: 9172
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
lordmarine13 is not online. lordmarine13
Joined: 09 May 2012
Total Posts: 171
11 May 2012 09:51 PM
[ Content Deleted ]
Report Abuse
swmaniac is not online. swmaniac
Joined: 28 Jun 2008
Total Posts: 15773
11 May 2012 09:53 PM
PascalCase for Lua.
camelCase for Java.
Report Abuse
kungfuman32 is not online. kungfuman32
Joined: 12 Dec 2008
Total Posts: 9172
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
lordmarine13 is not online. lordmarine13
Joined: 09 May 2012
Total Posts: 171
11 May 2012 09:55 PM
[ Content Deleted ]
Report Abuse
kungfuman32 is not online. kungfuman32
Joined: 12 Dec 2008
Total Posts: 9172
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
lordmarine13 is not online. lordmarine13
Joined: 09 May 2012
Total Posts: 171
11 May 2012 10:02 PM
[ Content Deleted ]
Report Abuse
kungfuman32 is not online. kungfuman32
Joined: 12 Dec 2008
Total Posts: 9172
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
lordmarine13 is not online. lordmarine13
Joined: 09 May 2012
Total Posts: 171
11 May 2012 10:06 PM
[ Content Deleted ]
Report Abuse
kungfuman32 is not online. kungfuman32
Joined: 12 Dec 2008
Total Posts: 9172
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image