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: Discussing Indenting

Previous Thread :: Next Thread 
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
27 Mar 2015 03:49 PM
I've found it's most proper to indent with 2 spaces in Lua, but I enjoy the easiness of tabs.

Like I can't accidentally half indent with a tab, you know? I am so used to seeing tab indentations. I do not see anyone use 2 spaces regularly except maybe Seranok. I think they are aesthetically pleasing, though.

Opinions?

-amanda
Report Abuse
LegitimatlyMe is not online. LegitimatlyMe
Joined: 30 Oct 2013
Total Posts: 1108
27 Mar 2015 03:52 PM
You aren't even a scripter if you don't indent code.


amirite?
Report Abuse
InfamousMask is not online. InfamousMask
Joined: 07 Jan 2011
Total Posts: 2000
27 Mar 2015 03:53 PM
Indent is love
Indent is life

~The random person in every sub-forum~
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
27 Mar 2015 03:54 PM
you could rig up some weird code and make an entire new character so when you old shift and tab it makes a tab thats 2 characters long
Report Abuse
MM233 is not online. MM233
Joined: 19 Jun 2008
Total Posts: 925
27 Mar 2015 03:55 PM
You guys DO realize question isn't about whether or not you should indent, but how?
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
27 Mar 2015 03:56 PM
sound promising

but i don't want to feed people weird characters that are going to show up as tiny boxes and question marks when they transfer to something else
Report Abuse
K7Q is online. K7Q
Joined: 23 Mar 2013
Total Posts: 5546
27 Mar 2015 03:58 PM
whats the point of indenting?
Report Abuse
MM233 is not online. MM233
Joined: 19 Jun 2008
Total Posts: 925
27 Mar 2015 03:58 PM
Oh hey, look what I found...

File > Settings > Studio > Script Editor > Tab Width = 4
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
27 Mar 2015 03:59 PM
i dont think that works
Report Abuse
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
27 Mar 2015 03:59 PM
"whats the point of indenting?"

if you dont you are an incompetent inconsiderate evil garbage wannabe scripter piece of trash
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
27 Mar 2015 03:59 PM
settings().Studio["Tab Width"] = 2

Have fun :)

Note to amanda: Could you check my plugin feedback thread? I replied back to your feedback.
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
27 Mar 2015 04:00 PM
K7Q, easier to read, more organized, knowing where functions, if statements, loops, and any other possible block of code starts and ends without having to really look
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
27 Mar 2015 04:02 PM
almost sad that that worked.

indenting isn't as impressive now because they are kind of tiny
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
27 Mar 2015 04:04 PM
sample code:

local UIS = game:GetService('UserInputService')

UIS.InputBegan:connect(function(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.Quote then
print('quote')
end
end)

UIS.InputEnded:connect(function(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.Quote then
print('unquote')
end
end)

Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
27 Mar 2015 04:04 PM
still shows up as full sized tabs in forum so its not worth it, changing it back
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
27 Mar 2015 04:05 PM
I always use tabs, even when the language standard is different
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
27 Mar 2015 04:05 PM
screen shot
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
27 Mar 2015 04:06 PM
"I always use tabs, even when the language standard is different"

The only one that I would think doesn't is HTML but i'm pretty sure it does.
What language does not use tabs?
Report Abuse
Argelius is not online. Argelius
Joined: 19 Jul 2010
Total Posts: 4047
27 Mar 2015 04:07 PM
I probably wouldn't indent if the editor didn't do it automatically because laziness
Report Abuse
MM233 is not online. MM233
Joined: 19 Jun 2008
Total Posts: 925
27 Mar 2015 04:09 PM
No language "uses" tabs. Its a convention for making code more user friendly, and not using it really does make things harder on yourself, especially if you intend to make any large, well made projects.
Report Abuse
Argelius is not online. Argelius
Joined: 19 Jul 2010
Total Posts: 4047
27 Mar 2015 04:12 PM
python though
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
27 Mar 2015 04:14 PM
python uses 4 spaces, and whenever i was a python user, i had no issue with the convention because it was close enough to an indent for me because i am used to them being 4 spaces long
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