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: Multiple questions:

Previous Thread :: Next Thread 
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
12 Jul 2011 06:44 PM
[ Content Deleted ]
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
12 Jul 2011 06:45 PM
Ubuntu is a version of linux that fries my brain.
Report Abuse
PersistentData is not online. PersistentData
Joined: 04 Apr 2011
Total Posts: 6224
12 Jul 2011 06:45 PM
Ubuntu = Linux distro.

1) no
2) yes
3) at times
4) you can do that?
5) wut
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
12 Jul 2011 06:46 PM
[ Content Deleted ]
Report Abuse
nickmaster24 is not online. nickmaster24
Joined: 04 Oct 2008
Total Posts: 8906
12 Jul 2011 06:47 PM
Ubuntu: The best way to get a headache with a computer.

I screwed up downloading it and, um, overlapped OSes on my laptop...
Report Abuse
DingDong272 is not online. DingDong272
Top 100 Poster
Joined: 08 Dec 2007
Total Posts: 9860
12 Jul 2011 06:47 PM
I think using local when you're outside of any functions is bad practice, the variable is going to be in the global scope regardless. I use local when I have multiple values in separate code blocks with the same name.
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
12 Jul 2011 06:47 PM
[ Content Deleted ]
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
12 Jul 2011 06:48 PM
1) Do you use semicolons IN TABLES?

It depends. If it's multiline, I'll use semicolons. Otherwise, I'll use commas.

2) Do you use local?
Yes.

3) Do you use Parenthesis in statements?
No. It's a bad practice to put parenthesis that aren't needed, because it makes code less clear and takes up space.

4) Do you use braces with statements?
No. It wouldn't respect the syntax and would error.

5) Are there more of these kind-of things?"
IDK?
Report Abuse
burgly is not online. burgly
Top 100 Poster
Joined: 20 Aug 2006
Total Posts: 2843
12 Jul 2011 06:48 PM
1) No, Commas
2) Yes
3) Occasionally, when I feel like it
4) No
5) Probably
Report Abuse
PersistentData is not online. PersistentData
Joined: 04 Apr 2011
Total Posts: 6224
12 Jul 2011 06:49 PM
@myrco
google it.
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
12 Jul 2011 06:51 PM
Ubuntu: A linux OS that melts brains.

1) No.
2) Yes.
3) Sometimes.
4) No.
5) I guess...
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
12 Jul 2011 06:52 PM
[ Content Deleted ]
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
12 Jul 2011 06:52 PM
"6) Split up tables:
local tab = {
9;
6;
0;
8}
7) Use tabs for scope
8) Use tabs in splitten tables"

Let me resay that:

6) Do you use multiline tables?
7) Do you use indentation for scope?
8) Do you indent multiline tables?

And let me answer:

6) Do you use multiline tables?
It depends.

7) Do you use indentation for scope?
Of course! If anyone answers no, I think I'll lose a lot of respect for him. Indenting is really important. Pretty much every programming tutorial (not only Lua ones) teaches you to indent.

8) Do you indent multiline tables?
Yes. It is a block, so I indent it.


I also indent long strings and long comments (multiline strings and comments, if you prefer).
Report Abuse
PersistentData is not online. PersistentData
Joined: 04 Apr 2011
Total Posts: 6224
12 Jul 2011 06:52 PM
Ubuntu is easy compared to Archlinux.
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
12 Jul 2011 06:53 PM
[ Content Deleted ]
Report Abuse
burgly is not online. burgly
Top 100 Poster
Joined: 20 Aug 2006
Total Posts: 2843
12 Jul 2011 06:53 PM
Ubuntu: My Favorite OS

6) No
7) Yes
8) Split Tables? What?
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
12 Jul 2011 06:53 PM
[ Content Deleted ]
Report Abuse
Aaaboy97 is not online. Aaaboy97
Joined: 05 Apr 2009
Total Posts: 6612
12 Jul 2011 06:54 PM
Ubuntu = Linux Distro
1) No
2) Yes
3) Sometimes
4) No
5) What?
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
12 Jul 2011 06:54 PM
[ Content Deleted ]
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
12 Jul 2011 06:54 PM
[...]

6) Only when adding tables inside the table o_e
7) Yes.
8) Yes.
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
12 Jul 2011 06:55 PM
[ Content Deleted ]
Report Abuse
pokelover980 is not online. pokelover980
Joined: 12 Jun 2009
Total Posts: 4141
12 Jul 2011 06:55 PM
"I think using local when you're outside of any functions is bad practice,"

Nope, it's faster regardless.

"the variable is going to be in the global scope regardless."

Nope. I don't completely understand it, but the way Lua handles it makes it faster still.
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
12 Jul 2011 06:55 PM
Aren't those split tables called arrays?
Report Abuse
burgly is not online. burgly
Top 100 Poster
Joined: 20 Aug 2006
Total Posts: 2843
12 Jul 2011 06:56 PM
8) I don't use multi-line tables, so no.
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
12 Jul 2011 06:56 PM
[ Content Deleted ]
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