|
| 20 Jun 2014 11:44 PM |
I'm taking lessons for Java Script right now to start improving my coding, so it can be easier to script in Roblox. I've picked at a few things in Roblox but never really got it, and a friend told me that it would be easier if I learned Java Script. So I'm taking the lessons at CodeCademy and I noticed that it is very identical to RBX.Lua and I'm just wondering what differences there are between the two besides the symbols.
Thanks! ~Super |
|
|
| Report Abuse |
|
|
nomer888
|
  |
| Joined: 13 Feb 2010 |
| Total Posts: 551 |
|
|
| 20 Jun 2014 11:49 PM |
| RBX.Lua is not Lua itself, ROBLOX didn't make the language. Lua and JS differ syntactually, which means the symbols used and the way the code is written is different. If your goal is to learn Lua, dive into Lua first, handling two syntaxes is much more confusing and complicated. |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 11:53 PM |
| I wish there was a place like CodeCademy that teaches RBX.Lua..or Lua..does anyone know a good place to learn RBX.Lua? |
|
|
| Report Abuse |
|
|
nomer888
|
  |
| Joined: 13 Feb 2010 |
| Total Posts: 551 |
|
|
| 21 Jun 2014 12:07 AM |
Free models, ROBLOX Wiki, learnxinyminutes' Lua tutorial (google it), youtube. Best way to learn is to teach yourself. I've had four years or so experience with Lua, haven't learned anything from mostly all tutorials since I've already learned the contents of the tutorials from documentation and experimenting. |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2014 01:09 AM |
Google 'wiki roblox cookbook' It only teaches you basic things, but it can get you started. |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2014 10:40 AM |
If you actually want to learn how the languages work, you should learn something that doesnt have any behind the scene magic like garbage collection or variables which magically change their type according to what you assign to them.
Learn the basics of C or C++ (the basics are largely the same so doesnt really matter which)
Especially pointers. |
|
|
| Report Abuse |
|
|
SigmaTech
|
  |
| Joined: 28 Jan 2010 |
| Total Posts: 643 |
|
|
| 21 Jun 2014 11:47 AM |
| Whoa. It's radio. Anyway, I highly recommend Codeacadmey. |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2014 12:35 PM |
There's no space between "Java" and "Script". JavaScript is a programming language, Java is an entirely different programming language, Lua is an entirely different programming, and RBX.Lua is a version of Lua made for Roblox (slightly different).
JavaScript is nothing like Lua. It has syntax more akin to C++. Lua does its own thing when it comes to syntax.
The languages are nowhere near the same. |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2014 12:40 PM |
JavaScript and Lua are extremely similar.
The most obvious difference is the ALGOL (C) like block grouping with { and } in JavaScript, as opposed to Lua's named labels (do end, repeat until, then end), but this is just a simple cosmetic difference.
They both are "semi functional" languages which allow functions to be values, and both use hashtables as the main sort of object. Although, again, C-like (Java-like) array indexing starting at 0 instead of 1 is used in JavaScript.
In addition, JavaScript differentiates between objects and arrays by assigning arrays a "prototype" which gives them default properties & methods. This sort of constructing and prototyping is really one of the only features that JavaScript has that Lua does not (directly), but this can be done also in Lua using metatables and constructing functions.
They are extremely similar. |
|
|
| Report Abuse |
|
|