I usually don't comment much but I just had to because the video was the perfect example of a crash course that is aimed at non-beginner programmers. Fast, well explained, clear, to the point, highlight the difference between common programming languages. Really well done.
I already know how to code with python, c# and c++, and I can already tell this video is fantastic. Straightforward for those who already know concepts of programming! Well done.
bro this is actually helpful cuz i aint trying to watching a beginner tutorial when im already a software engineering college student and too lazy to read documents on this… thanks for the crash course
This was awesome! I've learned the basics of python and was able to follow just about everything just reading your examples and what I didn't understand I did when I unpaused it and listen to you explain. Would love to see videos like this for other languages!
Currently interviewing for a AAA game studio that uses Lua to build their interfaces (I have a FE/Javascript background). This was exactly what I needed to get a sense of what that would look like 👌
04:29 - I must note that «not x == 10» is equivalent neither to «not (x == 10)», nor to «x ~= 10»; in fact, «not» precedes the equality check. I think in section 3.4.7 they covered it. So instead you're trying to compare «not x» to «10», which will yield false any day of the week.
Good! Except one possible oversight: 10/2 = 5 is incorrect. Lua 5.3 distinguishes between floats and integers. 10//2 = 5 is correct with two forward slashes (//) and performs the integer division like C and C-based languages. 10/2 = 5.0 defaults to a float(real) division like Pascal and Pascal-based languages.
I wished there were more such videos for "less known" languages. As developer is always so annoying to go through all those tutorials that explain for the 100th time what a var or a loop is... Very well done!
This is a great crash course, exactly the kind of thing people like me who love to jump in a learn whilst doing need to get off the ground. But also alot of the stuff you mentioned were weird, to me they just look alot like VBA. But i guess they are both scripting languages
Why they went with the ~= for inequality is a mistery to me. Not all keyboard layouts have the ~ key, for example my keyboard doesn't. Edit: Apparently it's not a problem anymore: I found out that you can use Microsoft Keyboard Layout Creator (MSKLC) to create a layout and add any ascii/unicode character to any key! It's so cool. So I don't have to use Alt+126 to write ~ anymore.
It also seems to share some simlarities with LISP with the use of tables / lists and no variable types. Admittedly that's where the similarity to LISP ends.
I think I might like this a little bit better than the other languages I already know. Mostly because of how flexible tables are when it comes to making your own data structures. And you don't have to deal with classes or any of that bullshit. You can just use some tables and a function and make your own data structures. Great for documenting arbitrary data
Thanks for the tutorial. I was wondering what the hash was lol. Basically, it allows you to Enumerate like in python as long as you use the hash and declare the counter. Vimscript should have gotten some tips from lua, all the functions end with 'endfunction' , 'endfu'.
Nice tutorial. Really good for just reminding basic concepts of this simple language. But... why global variables are done like that? Just not using "local" makes them global, as much as I know.
I would like to have this cheat sheet printed in paper for reference. The link in the description takes me to the github, but it's not easy to print and keep the formating. Can you help me?
Honestly, I would recommend to anyone who's starting out to learn python before anything else, since it's easy to learn, has fun implementations for projects, and last but not least, it allows you to learn pretty much any programming language with ease because most of them are just gonna seem like Python but with extra steps (or maybe less steps).
Hey Buddy, great video, but there are some mistakes, like the "if not x == 10 then", in Lua, we need to add parenthesis in the comparison, "if not (x == 10) then".
Quick and dirty i would say, there are several errors, the biggest being there is no += operator as shown in "sum += value", you need to write "sum = sum + value"
I have so many scripts of a game called Worms3D, but they are all in .LUB files. There is a good way to read the configs of each map (every script) of that files? How I have to manage to convert the Lub files into Lua files?
hi, I had a small if you can pls solve, at the place where you explain if statement you have commented that the print statement will not be executed, why is it so?? Also a great video loved, helped a lot :)
I usually don't comment much but I just had to because the video was the perfect example of a crash course that is aimed at non-beginner programmers.
Fast, well explained, clear, to the point, highlight the difference between common programming languages. Really well done.
Well said. This is exactly what I needed.
Same thoughts.
Somethings I would have liked to see were things like if there are generators, classes, decorators, anonymous functions etc.
what he said
And it has some misleading information too, as a bonus
Great video as usually coding videos are hours long but this is the nice fast pace i want
Google is a terrible site
I already know how to code with python, c# and c++, and I can already tell this video is fantastic. Straightforward for those who already know concepts of programming! Well done.
Finally a short video that explains everything well, and is made for people that already now other programming languages. Absolutely fantastic
bro this is actually helpful cuz i aint trying to watching a beginner tutorial when im already a software engineering college student and too lazy to read documents on this… thanks for the crash course
same! i'm a c# + c++ coder, and this tutorial is perfect for me lol
You saved so much of my time. Thanks dude.
I need to learn Lua for Open computers ^^
This is perfect, you just need to learn one language decently well and you can learn others in a really small amount of time. Thanks for the tutorial!
This was awesome! I've learned the basics of python and was able to follow just about everything just reading your examples and what I didn't understand I did when I unpaused it and listen to you explain. Would love to see videos like this for other languages!
I'm a complete beginner and this video has helped me a lot and solved my various doubts. Well!! Thank You
This is an awesome video, it can be tough to find guides for new languages that aren't made for complete beginners to programming. Thank you!
Almost everything I needed to know with very little wasted time. Much appreciated!
A perfect crash course to get the idea of what Lua is instead of watching hours of tutorials.
Currently interviewing for a AAA game studio that uses Lua to build their interfaces (I have a FE/Javascript background). This was exactly what I needed to get a sense of what that would look like 👌
Perfectly paced course for those who know how to code and can't sit still for more than a minute. Thanks for this!
04:29 - I must note that «not x == 10» is equivalent neither to «not (x == 10)», nor to «x ~= 10»; in fact, «not» precedes the equality check. I think in section 3.4.7 they covered it.
So instead you're trying to compare «not x» to «10», which will yield false any day of the week.
For someone who knows how to program this is a really cool Crash Course :)
Thanks a lot
Good! Except one possible oversight: 10/2 = 5 is incorrect. Lua 5.3 distinguishes between floats and integers. 10//2 = 5 is correct with two forward slashes (//) and performs the integer division like C and C-based languages. 10/2 = 5.0 defaults to a float(real) division like Pascal and Pascal-based languages.
interesting
What's power and modules
Finally a tutorial that doesn't hand-hold you through the entire thing. It's so annoying especially if you already know how to program.
you just saved me 3 hours of learning things a already know. thank you dude
As advertised, a crash course. Just the way it should be done. Thanks!
I wished there were more such videos for "less known" languages. As developer is always so annoying to go through all those tutorials that explain for the 100th time what a var or a loop is...
Very well done!
Surprised how well this crash course was. I now understand the basics of lua. You rock, friend!
Perfectly paced and exactly what I needed with no fluff.
I usually do not comment, and I just had to say thank you! This was extremely well done!
hey if in the timestamps in the description you include "00:00 Intro" or something like that, it'll show the chapters in the youtube progress bar.
Concise, quick, organized. Love it.
Short, sweet, and to the point! Well done
Thank you so much! I needed a quick way to learn Lua and your explanation was perfect!
Exactly what I was looking for, thank you.
Great video, perfect for just getting a quick idea of what the language can and can't do.
WOW THE BEST CRASH COURSE I HAVE EVER SEEN!!!!! THANK YOU!
This is literally exactly what I need. Thank you so much
I really needed this, im coming from js and ive been looking for a good video to take me off of the difference between lua and js. Thank you 😊
Omfg that cheat sheet is legendary
Really helpful! I am searching for a lua crash course in order to work with sol2 library.
Thanks, i didn't know how boolean value works, this video help me. But, not only boolean value, more things in this video was interesting.
Very insightful, just long enough to understand, good comparisons, and most of all.. free, lol. Great vid
Am speechless thank you so much you've literally saved me so much time
Thank you very much for this content! This is really helpful to get a quick start at the language.
Perfect concise explanation! Thanks for sharing this!
I hate when I try to learn another language and every course starts with programming learning instead of the language.
Thank you :D
Perfect introduction to a language.
Good video. As a somewhat decent C and dart user, this is just what i needed
another language that i can add in my resume 🐎🐎 thanks
Great help for the basics of Lua. Thank you.
Hello! Does this tutorial apply well to Roblox coding and scripting?
This is a great crash course, exactly the kind of thing people like me who love to jump in a learn whilst doing need to get off the ground.
But also alot of the stuff you mentioned were weird, to me they just look alot like VBA. But i guess they are both scripting languages
Brilliant explanation! Thank you very much
Nice video, you just saved me from documentation hell
while i
Perfect, very clear, thank you very much !!
Why they went with the ~= for inequality is a mistery to me. Not all keyboard layouts have the ~ key, for example my keyboard doesn't.
Edit: Apparently it's not a problem anymore: I found out that you can use Microsoft Keyboard Layout Creator (MSKLC) to create a layout and add any ascii/unicode character to any key! It's so cool.
So I don't have to use Alt+126 to write ~ anymore.
I mean you can also pull out an on-screen keyboard
@@thenecroking6170 Yes but at that point it's quicker to use Alt+126
Or do the MSKLC thing once and get ~ mapped to the keyboard permanently
This was a great short summary, thanks!
I did programming in Pascal in the 90s. It seems Lua is resurrecting Pascal from the past. Anyone who knows Pascal sure will agree with me.
It also seems to share some simlarities with LISP with the use of tables / lists and no variable types. Admittedly that's where the similarity to LISP ends.
Turbo Pascal used to be the sh!t then suddenly nobody cared. Beautiful language.
This was great knowledge. Exactly what I wanted.
thankyou, i appreciate the efforts you put in, it was a great video.
Great video and very useful cheat sheet, thanks!
13:00 I thought you couldn't use +=
Super helpful, thanks for making this tutorial.
Thanks, exactly what I needed!
No time wasted here. Thanks
I think I might like this a little bit better than the other languages I already know.
Mostly because of how flexible tables are when it comes to making your own data structures. And you don't have to deal with classes or any of that bullshit. You can just use some tables and a function and make your own data structures.
Great for documenting arbitrary data
For context, I've learned a bit of C#, javascript and other web stuff, and python.
Also, I can read a little bit of assembly and modify it.
local data ={"Hello", "World"}
for i, v in pairs(data) do
print(i, v)
end
Yay
Thanks for the tutorial. I was wondering what the hash was lol. Basically, it allows you to Enumerate like in python as long as you use the hash and declare the counter. Vimscript should have gotten some tips from lua, all the functions end with 'endfunction' , 'endfu'.
Nice tutorial. Really good for just reminding basic concepts of this simple language.
But... why global variables are done like that? Just not using "local" makes them global, as much as I know.
nice overview to get started with lua
Good overview of the what and how but not of the why. What can you use it for?
After this, I can add Lua to my resumé for the programming language
Can you do one tut where you incorporate Lua into C? Thx
If you are looking for an OOP library, use middleclass: github.com/kikito/middleclass. I tried about 15 different libraries and this one is the best.
Man, this I exactly what I needed
1:16 They're called parentheses.
5:44 Why do this instead of leaving out "local" and "_G."?
I would like to have this cheat sheet printed in paper for reference. The link in the description takes me to the github, but it's not easy to print and keep the formating. Can you help me?
finally a good Lua video; thx! ;-)
This is exactly what I needed
Thanks for making this you are awesome!
Honestly, I would recommend to anyone who's starting out to learn python before anything else, since it's easy to learn, has fun implementations for projects, and last but not least, it allows you to learn pretty much any programming language with ease because most of them are just gonna seem like Python but with extra steps (or maybe less steps).
Start with batch
@eshay why not its literally so easy and teaches you some of the basics
@eshay i started with batch so i might be biased
Ok, that's all super clear but how do you instance objects?
omg i learned to code in 10 seconds!!!!
this was uploaded 2 days after my birthday
amazing video!
perfect length for me:D
Hey Buddy, great video, but there are some mistakes, like the "if not x == 10 then", in Lua, we need to add parenthesis in the comparison, "if not (x == 10) then".
Quick and dirty i would say, there are several errors, the biggest being there is no += operator as shown in "sum += value", you need to write "sum = sum + value"
I have so many scripts of a game called Worms3D, but they are all in .LUB files. There is a good way to read the configs of each map (every script) of that files? How I have to manage to convert the Lub files into Lua files?
a lot of the examples were incorrect but you got the basic concepts down so its a 8/10 from me
Great video. Thank you so much!
Can we make softwares with lua
yes lua can
Great video! What about classes, tho? It looks similar to js common 🤔
thanks a lot man, great vid. keep going, i still dont get the point of this language tho
Can you direct me to a crash course for people who don't already code? I got interested in this because I want to make addons for World of Warcraft.
Thanks, i am learning Lua for neovim
This language is so similar to Ruby, Elixir, Python and JavaScript.
yes. definitely python and javascript in my opinion.
hi, I had a small if you can pls solve, at the place where you explain if statement you have commented that the print statement will not be executed, why is it so?? Also a great video loved, helped a lot :)
I think that is a mistake (at 2:40) and a similar mistake at 3:50. Seems to have mixed up the < and > signs.
Where can I find your Lua cheatsheet?
First time i have heard round brackets.
Why you stopped making videos?
Alright, now how do compile the thing ?
Good video, I understand some things
Thanks for the cheat sheet
preciate it fam
Let's pay our respects to John Doe, arguably the most famous man in the English speaking world. Died while coding Lua.