Lua Crash Course - Less than 15mins

Ғылым және технология

A guide to lua for people who already know how to code in another language
Timestamps:
1:13 hello world
1:25 comments
1:31 variables
2:39 conditional statements
4:47 functions
5:23 scope
5:42 global variables
6:10 loops
7:36 tables
9:57 2 dimensional tables
10:46 key tables
13:05 math library
13:51 modules
Links
-----------
Cheat sheet: github.com/pohka/Lua-Beginner...
Lua Docs: www.lua.org/docs.html

Пікірлер: 168

  • @sh0ker
    @sh0ker3 жыл бұрын

    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.

  • @borgiedude

    @borgiedude

    3 жыл бұрын

    Well said. This is exactly what I needed.

  • @JabirAH

    @JabirAH

    2 жыл бұрын

    Same thoughts.

  • @KManAbout

    @KManAbout

    2 жыл бұрын

    Somethings I would have liked to see were things like if there are generators, classes, decorators, anonymous functions etc.

  • @patjustpat8178

    @patjustpat8178

    Жыл бұрын

    what he said

  • @ivanjijon8647

    @ivanjijon8647

    3 ай бұрын

    And it has some misleading information too, as a bonus

  • @fredfred9847
    @fredfred98474 жыл бұрын

    Great video as usually coding videos are hours long but this is the nice fast pace i want

  • @solarwater3298

    @solarwater3298

    Жыл бұрын

    Google is a terrible site

  • @sir_no_name1478
    @sir_no_name14783 жыл бұрын

    You saved so much of my time. Thanks dude. I need to learn Lua for Open computers ^^

  • @rain_sq
    @rain_sq2 жыл бұрын

    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

  • @garychike266
    @garychike2662 жыл бұрын

    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.

  • @tadeob_UB

    @tadeob_UB

    Жыл бұрын

    interesting

  • @mr.technology7109

    @mr.technology7109

    Жыл бұрын

    What's power and modules

  • @list9016
    @list90162 жыл бұрын

    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!

  • @aoli2182
    @aoli21823 жыл бұрын

    Concise, quick, organized. Love it.

  • @cheffromspace9771
    @cheffromspace97712 жыл бұрын

    Perfectly paced and exactly what I needed with no fluff.

  • @shanerj4410
    @shanerj44102 жыл бұрын

    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!

  • @quasigod1083
    @quasigod10832 жыл бұрын

    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!

  • @jayel9809
    @jayel9809 Жыл бұрын

    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 👌

  • @Muskar2
    @Muskar23 жыл бұрын

    Almost everything I needed to know with very little wasted time. Much appreciated!

  • @eezara961
    @eezara9613 жыл бұрын

    I'm a complete beginner and this video has helped me a lot and solved my various doubts. Well!! Thank You

  • @490o
    @490o3 жыл бұрын

    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.

  • @ozzyfromspace
    @ozzyfromspace11 ай бұрын

    Surprised how well this crash course was. I now understand the basics of lua. You rock, friend!

  • @FifthSparkGaming
    @FifthSparkGaming Жыл бұрын

    Perfectly paced course for those who know how to code and can't sit still for more than a minute. Thanks for this!

  • @antoniomasotti8060
    @antoniomasotti80604 ай бұрын

    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!

  • @NilsKullberg
    @NilsKullberg3 жыл бұрын

    As advertised, a crash course. Just the way it should be done. Thanks!

  • @mist7293
    @mist7293 Жыл бұрын

    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 😊

  • @mr_legendaryguy9870
    @mr_legendaryguy98703 жыл бұрын

    Great video, perfect for just getting a quick idea of what the language can and can't do.

  • @TheHobbit28
    @TheHobbit283 жыл бұрын

    For someone who knows how to program this is a really cool Crash Course :) Thanks a lot

  • @stevelitt
    @stevelitt3 жыл бұрын

    Perfect concise explanation! Thanks for sharing this!

  • @benzenatizineeddine7816
    @benzenatizineeddine78162 жыл бұрын

    you just saved me 3 hours of learning things a already know. thank you dude

  • @spyh4rd
    @spyh4rd2 жыл бұрын

    This is literally exactly what I need. Thank you so much

  • @cordelldev
    @cordelldev2 жыл бұрын

    Exactly what I was looking for, thank you.

  • @matthewwoodruff3563
    @matthewwoodruff35633 жыл бұрын

    I usually do not comment, and I just had to say thank you! This was extremely well done!

  • @abdullahnaim8073
    @abdullahnaim807310 ай бұрын

    WOW THE BEST CRASH COURSE I HAVE EVER SEEN!!!!! THANK YOU!

  • @Gabzim
    @Gabzim3 жыл бұрын

    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.

  • @marinac.ll.4840
    @marinac.ll.48402 жыл бұрын

    Brilliant explanation! Thank you very much

  • @jkobain
    @jkobain3 жыл бұрын

    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.

  • @flannn6
    @flannn6 Жыл бұрын

    Thank you very much for this content! This is really helpful to get a quick start at the language.

  • @Wo0dY101
    @Wo0dY1014 жыл бұрын

    Thanks, exactly what I needed!

  • @JabirAH
    @JabirAH2 жыл бұрын

    A perfect crash course to get the idea of what Lua is instead of watching hours of tutorials.

  • @TyPiEx
    @TyPiEx2 жыл бұрын

    This was a great short summary, thanks!

  • @arthur5996
    @arthur59963 жыл бұрын

    Perfect, very clear, thank you very much !!

  • @thenecroking6170
    @thenecroking61702 жыл бұрын

    Very insightful, just long enough to understand, good comparisons, and most of all.. free, lol. Great vid

  • @TinyBitSec
    @TinyBitSec3 жыл бұрын

    another language that i can add in my resume 🐎🐎 thanks

  • @cariyaputta
    @cariyaputtaАй бұрын

    Perfect introduction to a language.

  • @user-pf9jv1fl2n
    @user-pf9jv1fl2n2 жыл бұрын

    Am speechless thank you so much you've literally saved me so much time

  • @arufuponics8415
    @arufuponics84153 жыл бұрын

    nice overview to get started with lua

  • @jonathanward7216
    @jonathanward72163 жыл бұрын

    Omfg that cheat sheet is legendary

  • @blitzkreg335
    @blitzkreg335 Жыл бұрын

    This was great knowledge. Exactly what I wanted.

  • @ItsaJuraff
    @ItsaJuraff3 жыл бұрын

    Just what I needed! Thanks!

  • @ProtonChicken
    @ProtonChicken Жыл бұрын

    Great video and very useful cheat sheet, thanks!

  • @tadeob_UB
    @tadeob_UB Жыл бұрын

    No time wasted here. Thanks

  • @maximofernandez196
    @maximofernandez196 Жыл бұрын

    Man, this I exactly what I needed

  • @wirojtamboonlertchai467
    @wirojtamboonlertchai4673 жыл бұрын

    Great video. Thank you so much!

  • @sauraabh
    @sauraabh2 ай бұрын

    This is exactly what I needed

  • @Kitsune_Dev
    @Kitsune_Dev3 жыл бұрын

    Thanks for making this you are awesome!

  • @originalni_popisovac
    @originalni_popisovac2 жыл бұрын

    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.

  • @snipzmattio5887
    @snipzmattio58872 жыл бұрын

    Good video. As a somewhat decent C and dart user, this is just what i needed

  • @oscarjeans4119
    @oscarjeans41192 жыл бұрын

    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

  • @unaisulhadi9102
    @unaisulhadi91022 жыл бұрын

    Nice video, you just saved me from documentation hell

  • @alisa2284
    @alisa22843 ай бұрын

    Really helpful! I am searching for a lua crash course in order to work with sol2 library.

  • @montoyabaezdiegoricardo5450
    @montoyabaezdiegoricardo5450 Жыл бұрын

    I hate when I try to learn another language and every course starts with programming learning instead of the language. Thank you :D

  • @dennisdecoene
    @dennisdecoene2 жыл бұрын

    Good overview of the what and how but not of the why. What can you use it for?

  • @callmehsarah2924
    @callmehsarah29242 жыл бұрын

    amazing video! perfect length for me:D

  • @thegreendude2086
    @thegreendude20868 ай бұрын

    Thanks for the cheat sheet

  • @yourcatboymaid
    @yourcatboymaid Жыл бұрын

    Great video! Ty

  • @vlaktorbb
    @vlaktorbb Жыл бұрын

    finally a good Lua video; thx! ;-)

  • @user-qh5qo2tr7l
    @user-qh5qo2tr7l Жыл бұрын

    Thanks you. Very cool.

  • @ChristopherFranko
    @ChristopherFranko4 жыл бұрын

    preciate it fam

  • @s4degh
    @s4degh2 жыл бұрын

    Thank you, Thank you.

  • @jlamores
    @jlamores Жыл бұрын

    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?

  • @bantest7807
    @bantest78073 жыл бұрын

    Good video, I understand some things

  • @Betruet
    @Betruet3 күн бұрын

    great video

  • @ironmanlifts
    @ironmanlifts3 жыл бұрын

    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'.

  • @lucianorodriguez7726
    @lucianorodriguez77263 жыл бұрын

    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?

  • @cristianfigueredo566
    @cristianfigueredo566 Жыл бұрын

    Thanks, i am learning Lua for neovim

  • @LRTOTAL
    @LRTOTAL3 жыл бұрын

    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.

  • @thenecroking6170

    @thenecroking6170

    2 жыл бұрын

    I mean you can also pull out an on-screen keyboard

  • @LRTOTAL

    @LRTOTAL

    2 жыл бұрын

    @@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

  • @fadijabr8992
    @fadijabr89923 жыл бұрын

    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.

  • @borgiedude

    @borgiedude

    3 жыл бұрын

    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.

  • @absmustang

    @absmustang

    11 ай бұрын

    Turbo Pascal used to be the sh!t then suddenly nobody cared. Beautiful language.

  • @TonyDaExpert
    @TonyDaExpert3 жыл бұрын

    Thx!

  • @044_sanketpalchaudhary_mec8
    @044_sanketpalchaudhary_mec83 жыл бұрын

    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 :)

  • @Cumaran

    @Cumaran

    Жыл бұрын

    I think that is a mistake (at 2:40) and a similar mistake at 3:50. Seems to have mixed up the signs.

  • @patjustpat8178
    @patjustpat8178 Жыл бұрын

    Amazing

  • @chizzlemo3094
    @chizzlemo30943 жыл бұрын

    If den else !!! Great video tanksamillion

  • @Silver0Crow
    @Silver0Crow2 жыл бұрын

    Great video! What about classes, tho? It looks similar to js common 🤔

  • @retrx4236
    @retrx4236 Жыл бұрын

    On point

  • @jaimedpcaus1
    @jaimedpcaus13 жыл бұрын

    Can you do one tut where you incorporate Lua into C? Thx

  • @__3093
    @__30933 жыл бұрын

    this was uploaded 2 days after my birthday

  • @vulcalien-priv-abc
    @vulcalien-priv-abc3 жыл бұрын

    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.

  • @mopsfl
    @mopsfl3 жыл бұрын

    local data ={"Hello", "World"} for i, v in pairs(data) do print(i, v) end Yay

  • @motbus3
    @motbus33 жыл бұрын

    thanks

  • @MarkVolkmann
    @MarkVolkmann Жыл бұрын

    Where can I find your Lua cheatsheet?

  • @hi-hg4og
    @hi-hg4og2 жыл бұрын

    omg i learned to code in 10 seconds!!!!

  • @somyagarg2811
    @somyagarg28112 жыл бұрын

    Awesome

  • @harisahmad7613
    @harisahmad76134 жыл бұрын

    Thank. This helped...

  • @x1plus1x
    @x1plus1x4 сағат бұрын

    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.

  • @tobiassjoholm9325
    @tobiassjoholm9325 Жыл бұрын

    Great

  • @viktornaymayer8882
    @viktornaymayer8882 Жыл бұрын

    tnx, bro)

  • @idrissberchil25
    @idrissberchil253 жыл бұрын

    Alright, now how do compile the thing ?

  • @StarMineBR
    @StarMineBR3 жыл бұрын

    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".

  • @alexandrutica6610
    @alexandrutica66104 жыл бұрын

    Can we make softwares with lua

  • @Alexander-mk4qf

    @Alexander-mk4qf

    3 жыл бұрын

    yes lua can

  • @krishnaraj3989
    @krishnaraj39893 жыл бұрын

    thanks a lot man, great vid. keep going, i still dont get the point of this language tho

  • @flathippo4997
    @flathippo4997 Жыл бұрын

    a lot of the examples were incorrect but you got the basic concepts down so its a 8/10 from me

  • @rithvikbejoy3608
    @rithvikbejoy36083 жыл бұрын

    First time i have heard round brackets.

  • @williamlongin7140
    @williamlongin71402 жыл бұрын

    I'm looking for a mentor in LUA. Can anyone help me?

  • @W_0_W
    @W_0_W3 жыл бұрын

    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.

  • @alisanan9090
    @alisanan90903 ай бұрын

    Why you stopped making videos?

  • @freaklore
    @freaklore2 жыл бұрын

    This language is so similar to Ruby, Elixir, Python and JavaScript.

  • @popplestones886
    @popplestones8863 ай бұрын

    while i

Келесі