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: Nastiest thing Lua gave me.

Previous Thread :: Next Thread 
Draeton is not online. Draeton
Joined: 04 Jun 2012
Total Posts: 4269
11 Dec 2012 08:25 PM
I think the nastiest thing I've picked up from usage of Lua is the habit to key ~= instead of != to represent 'is not equal to'.
This is a very small inconvenience, but in your opinion what is your worst 'transfered over' from usage of Lua to another language?
Report Abuse
AbsoluteLOL is not online. AbsoluteLOL
Joined: 01 Dec 2012
Total Posts: 3939
11 Dec 2012 08:29 PM
Not placing line delimiters.
End of story

~ I like pudding ◕‿◕ ~
Report Abuse
thek00lkid is not online. thek00lkid
Joined: 18 Jun 2011
Total Posts: 2778
11 Dec 2012 08:32 PM
The use of words rather than brackets sometimes gets to my head. For example:

Java:

for(i=1;i<10;i++)
{
System.out.println(i)
}

Lua:

for i = 1, 10 do
print(i)
end



Report Abuse
Draeton is not online. Draeton
Joined: 04 Jun 2012
Total Posts: 4269
11 Dec 2012 08:34 PM
@thek00lkid
I must admit that Lua is a totally mixed up language with regards to that.
@AbsoluteLOL
'end of story'
You didn't!
Report Abuse
AbsoluteLOL is not online. AbsoluteLOL
Joined: 01 Dec 2012
Total Posts: 3939
11 Dec 2012 08:35 PM
Try coding ROBLOX Lua (or regular Lua) for days on end, then try C# for a day.
You'll want to kill yourself.

~ I like pudding ◕‿◕ ~
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
11 Dec 2012 09:11 PM
Using nil instead of void.

nil main() {}

> error
> q.q

-= The best thing about UDP jokes? I don't care if you get them or not. =-
Report Abuse
Roundel is not online. Roundel
Joined: 20 Mar 2010
Total Posts: 469
11 Dec 2012 09:13 PM
roblox addiction
Report Abuse
swmaniac is not online. swmaniac
Joined: 28 Jun 2008
Total Posts: 15773
11 Dec 2012 09:22 PM
I STILL miss semicolons thanks to Lua, and I haven't written a serious script in months!
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
11 Dec 2012 09:23 PM
My nasty habit is adding the data type before the name:

int Number = 0
Report Abuse
DrAgonmoray is not online. DrAgonmoray
Joined: 29 Jul 2008
Total Posts: 17428
11 Dec 2012 09:25 PM
techboy, your signature made me lol
Report Abuse
NINJAKID09 is not online. NINJAKID09
Joined: 27 Aug 2009
Total Posts: 14392
11 Dec 2012 09:35 PM
When you've coded in lots of different languages, you get used to it.

The only habit I have is semicolons, and Lua has them as optional anyway.

Lua hasn't given me habits, however other languages have given me these habits in Lua:

- Brackets in IF statements.
- Semicolons on the end of things, e.g:
--
a = 1;
print("Hello World!");
t = {};
t2 = {
x = 3;
y = 2;
z = 9;
};
--

And that's about it, really.
Report Abuse
NecroBumpist is not online. NecroBumpist
Joined: 12 Sep 2010
Total Posts: 4198
11 Dec 2012 10:35 PM
>missing semicolons because of Lua

This is entirely your fault.
I forced myself into the habit of placing a semicolon after a statement even while writing Lua code years ago.

This actually proves problematic when I try to contribute code to projects on github in Lua because very few other people do this.
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
11 Dec 2012 10:42 PM
Yeah, I'll add semicolons to the end of Lua statements too.

JulienDethurens kind of made me tab in code and make it pretty syntax wise, which I still do when coding in other languages. I think Lua kind of made me want to do stuff like this:

return booleanValue and 36 or 100;

Which you really can't do in a lot of languages. I also end up wanting to send functions and stuff through arguments, which is also probably a bad thing.

However, other languages have screwed over my use of Lua, because I actually like static data types and OOP programming.

Report Abuse
jode6543 is not online. jode6543
Joined: 16 Jun 2009
Total Posts: 5363
11 Dec 2012 11:02 PM
Thek00lkid provided a perfect example of my problem without even meaning to:
for(i=1;i<10;i++)
Notice that lack of "int" before the i.

[[There is no place like ~]]
Report Abuse
NINJAKID09 is not online. NINJAKID09
Joined: 27 Aug 2009
Total Posts: 14392
11 Dec 2012 11:14 PM
@Quenty Oh yeah, I also indent. Been doing that since I started coding. lol

Much more tidier and readable that way.
Report Abuse
TeamDman is not online. TeamDman
Joined: 04 Dec 2009
Total Posts: 897
12 Dec 2012 06:09 AM
I indent too, but I haven't always when I look back at my old scripts they're not indented and are a .txt file so my editor doesn't do the syntax highlighting.

I'm starting in C++ and I am missing the semicolons everywhere.

§TeamDman§ Anti-Jared
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
12 Dec 2012 07:33 AM
i dont like ~= i need to use bothe alt gr and shift to write it T_T
Report Abuse
nairod7 is not online. nairod7
Joined: 26 Mar 2010
Total Posts: 869
12 Dec 2012 10:06 AM
I'm still happy I can do things like that : "return booleanValue and 36 or 100;" in C++. Is it possible in Java or C# ?
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
12 Dec 2012 12:16 PM
"do end" instead of { }. Why did they do that?
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
12 Dec 2012 12:19 PM
It's a much much better system in my opinion. The words are more readable and the braces are used for something else.
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
12 Dec 2012 12:38 PM
No. "do end" is different to almost every other language, has no reasoning behind it [citation needed] and is _less_ readable. { and } is the most sensible way of doing things.
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
12 Dec 2012 01:05 PM
'in my opinion'
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
12 Dec 2012 01:09 PM
"I also end up wanting to send functions and stuff through arguments, which is also probably a bad thing."

Sending functions as arguments is an aspect of functional programming, and it's nothing to be ashamed of.
Report Abuse
NVI is not online. NVI
Joined: 11 Jan 2009
Total Posts: 4744
12 Dec 2012 02:22 PM
I don't really have any problems switching languages. Do you people just have weak willpower or what?
Report Abuse
Legend26 is not online. Legend26
Joined: 08 Sep 2008
Total Posts: 10586
12 Dec 2012 02:24 PM
Nor do I. Not that hard for me to switch languages. In fact, it's easy.
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