Do you need to learn everything in Lua?

Do you need to learn everything in Lua all way down from basics to something like metatables?

2 Likes

In my opinion, I am pretty sure that learning the basics of coding is pretty much required, but you don’t have to learn everything in Lua; you just have to learn what you need or want for the things you’re creating or making.

3 Likes

It depends what you’re trying to achieve. Yes, the more you know the better you’ll be but it really depends on what you’re trying to do.

The short answer is no.

1 Like

Yeah, it depends, going all way down into any language or not?
Luau? C#, C++, Phyton, HTML, JS, PHP, idk theres many languages… whats your interest? your hobby? why are you learning any of those? is it required for your goals? the more you know the better skilled you are, but whats the point? depends on you I think

so it means that, I don’t need to learn vanilla Lua but Luau?

Luau is just an extension of Lua.

(Almost) everything that is in Lua is in Luau.

Lua is a very simple language. You’ll find that when you get the hang of everything, you’ll realize there really isn’t much to learn.

That being said, you don’t necessarily have to learn everything.

If you’ve never using OOP or advanced language trickery, don’t learn metatables. If it takes too long to learn and hinders your game development, don’t let it waste your time.

That being said, it could definitely teach you some useful techniques you might even find yourself using in the future. If you think you have the time and patience, go for it!

I would definitely recommend looking more into things like Luau’s type checking and other new Luau features. Find more about them here: https://luau-lang.org/

At the end of the day, it’s your language learning journey so you should get to decided what you should take or not.

1 Like

However, I already learned metatables, but is it optional?

1 Like

If you’ve already learned metatables, then that’s great!

Like I said, only learn what you think you need. If someone tells you that you may need, for example, coroutines to achieve something and you agree, you can go ahead and learn it.

It’s not about what’s optional or not, but rather what is useful to you. That’s for you to decide.

I know this answer may not be satisfying and leaves a lot up to you, but I cannot lie and say that you MUST learn everything or that there are some things that you must never learn. It all depends on your use-case, which you should know best.

If you ever need to know what the best way to achieve something is, even if it is something you don’t know yet you can just ask here in #help-and-feedback:scripting-support or #help-and-feedback:code-review

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.