Is Lua easy to learn?

I’ve been making games for the past 2 years but lua was always something I didn’t really come in contact with I always asked a friend or hired someone to do it, recently I felt like I should learn it and do it myself instead is it easy enough to learn? I know simple commands and codes but no hard ones. Thanks in advance

12 Likes

I wouldn’t say any programming language is inherently easy to learn, just depends on experience. Since Lua was my first programming language I’m used to it, but I can tell you it’s really similar to Python except Python doesn’t require ends. If you know Python you should be OK

11 Likes

Since you seem to have some experience with other languages then It’ll probably be an easier experience for you learning Lua, with training and enough research I’m pretty sure you’ll get the hang of it pretty soon.

6 Likes

Thanks for the reply! I’m familiar with python actually so I’ll give it a shot.

No problem, I can tell you that Lua is really fun, but if it’s frustrating don’t give up. Success is only made sweeter by failures! :slight_smile:

5 Likes

Thanks, I do use other languages so I’ll give lua a shot.

3 Likes

Lua is rather straight forward.
I’d say its the most straight forward language.
Compare it with most other languages you will find how much friendlier it is.

At least this:

DoSomething = function()

end

if 3==4 then DoSomething() end

Is easier to understand than something like this:

def DoSomething():

if 3==4:
    DoSomething()

And is a lot clearer than something like this:

public class Main {
  static void DoSomething() {
  }

  public static void main(String[] args) {
    if (3==4) {
      DoSomething();
    }
  }
}
9 Likes

Lua was a bit interesting for me to learn as I’m used to Java like languages, but it wasn’t that hard

3 Likes

Lua is probably the easiest language I’ve ever seen (and pretty enjoyable), if you’ve been programming for the past 2 years, you can basically cover everything and get advanced in a week.

4 Likes

If you put your mind to it and really want to do it, then it gets less painful. If you know some simple code already, then that should help you depending on the language.

1 Like

It’s not the hard to learn, you just have to learn what the functions and thingys do, and that’s all, it’s actually really fun too!

1 Like

I’m more of a builder than a scripter. Though I have tried to script to help my building or models be better. If you were to mess up one part of the script you wouldn’t know unless you were experienced to understand what is wrong. Plus the most smallest mistake in a script could cause it to not work either.

2 Likes

That uses a class, which is actually a great example of where Lua is lacking. I’m not sure that’s the best example to bring up when you’re talking about it being easy, since you have to dive into metatables instead of just doing class child(base): (which is what most languages would do, obviously with slightly different formatting).

5 Likes

Its very simple, if you know Python, Lua should be easy for you. Lua is fun to program with and I actually prefer using higher level languages(more human readable languages) over low level languages (C++) due to the enjoyment of the simplicity of programming with them.

2 Likes

Lua is in itself not hard to learn. Using Lua efficiently, like any programming language, is something you gain through experience. If you learn one programming language you basically have learned them all. I learned Java and then taught myself Lua in just a few days. Programming is a kind of art. Anyone can program something to do something, but how well it performs the task introduces skill.

2 Likes

In general, no language is impossible to learn. Lua in a way is “easy” compared to other existing languages ​​because it does not have as much content as the others. It is interesting that you already have experience with programming through other languages, but that does not stop you from being your first Lua. I have been programming for 5 years now, and I learned Lua about 2 years ago, and in a way it was quite easy for me to absorb the language, since I also identified components in it that were in other languages. What I really recommend to you so that if you really want to learn to program on the Lua is that you are always following the forum, watching videos, existing projects and others. I definitely don’t recommend getting ready scripts and you just change the values ​​and say you already know how to program. You can actually get the script ready and understand the reasoning of that programmer. There are many different methods that you can learn, but it goes from person to person.

3 Likes

This depends on your past experiences. I found that the transition from Lua to Javascript was relatively easy and actually increased my abilities in Lua.

I’d say it is not hard to learn, but it realistically takes time to get good at like anything else. I’ve been at it for close to 5 years and still haven’t learned everything. Now if you pour 24 hours a day into it, you’ll pick it up very quickly, unlike myself who treats it as a hobby.

1 Like

IMO its easier to learn compared to other languages, but the real issue is how you’ll respond to learning a more complicated language coming from Lua/Python. You can still do it, but I’d expect it to be much more challenging coming from a more “relaxed” language.

Though to answer your question with more detail, if you know Python then Lua should be pretty easy. They share a significant amount of similarities as far as syntax goes.

Any programming language is very hard to learn if you’ve never programmed before. The notion that it’s “easy” is only in relevant for those who already know it or already know another language.

Learning to program has a large learning curve. It’s not easy. It will drive you a bit crazy. But it’s one of the most rewarding skills to learn.

Think of it like learning to play an instrument that you’ve never seen anyone play before (because you’ve probably never seen someone actually program–just the results).

7 Likes

I’ll say that it is easy to learn. Just hard to put into practice(meaning getting the desired result of what you want to achieve sometimes takes a while especially when there are dumb bugs).

1 Like