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
 

Methods

Previous Thread :: Next Thread 
EllisLadon is not online. EllisLadon
Joined: 21 Jun 2012
Total Posts: 343
25 Feb 2016 11:02 PM
Not really a lua question, but has anyone noticed the way methods are set up in other languages? Whenever I see any code from others or I use the pre-generated stuff, they always space methods like this:

int main()
{
return 0;
}

So I was wondering if I was the only one that hated it and how you guys space it out.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
25 Feb 2016 11:04 PM
I never put a brace on its own line, but it's preference.
Report Abuse
wolfbane3333 is not online. wolfbane3333
Joined: 03 Jan 2012
Total Posts: 126
25 Feb 2016 11:07 PM
lua is a high-level coding language and thus very easy to learn and use, but also takes more processing space.

Java, which is the language you are using as an example, is a lowerish-level language. Which means it's harder to learn and use yet uses up less processing space.

It seems harder to use because it's getting closer to the language a computer uses, which is very hard to understand.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
25 Feb 2016 11:09 PM
An open-brace*

wolfbane what you said was irrelevant to this thread, just so you know.

Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
25 Feb 2016 11:09 PM
And his example is definitely not in Java, it's most likely C/C++
Report Abuse
tedrin70 is not online. tedrin70
Joined: 09 Nov 2012
Total Posts: 603
25 Feb 2016 11:20 PM
I personaly keep all my code really close together, I never space out my lines.
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
25 Feb 2016 11:30 PM
I prefer:

int main(){
return 0;
}


Report Abuse
Haschwalth is not online. Haschwalth
Joined: 30 Sep 2009
Total Posts: 24661
25 Feb 2016 11:31 PM
I keep it like you said it
int main()
{
return 0;
}

It makes it so much easier to see if you are missing a brace or not
Report Abuse
tedrin70 is not online. tedrin70
Joined: 09 Nov 2012
Total Posts: 603
25 Feb 2016 11:36 PM
int main(void)
{

}
Report Abuse
EllisLadon is not online. EllisLadon
Joined: 21 Jun 2012
Total Posts: 343
18 Mar 2016 01:26 PM
This got booted way down my list of threads >.>
Glad to see I'm not the only one who doesn't space their code like that.

And yeah I was using C++ as an example =P
Cool that chimmihc replied tho. That's one off the bucket list.
Report Abuse
EllisLadon is not online. EllisLadon
Joined: 21 Jun 2012
Total Posts: 343
18 Mar 2016 01:27 PM
and cntkillme

two off the bucket list.
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
18 Mar 2016 01:28 PM
I prefer it like @chim.

int main() {
return 0;
};


Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784
Report Abuse
LTB4 is not online. LTB4
Joined: 05 Mar 2016
Total Posts: 298
18 Mar 2016 01:30 PM
int main() {
//Code here
return 0;
}

#code --[[LTB4]] | return [[std::cout << "I am the best at C++!" << endl;]]
Report Abuse
tedrin70 is not online. tedrin70
Joined: 09 Nov 2012
Total Posts: 603
18 Mar 2016 04:17 PM
We got the point out it's time to stop bumping this thread.
Report Abuse
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
18 Mar 2016 05:31 PM
"};" lmao you never fail to disappoint kek
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