Lua Tutorial

preview_player
Показать описание

I'd greatly appreciate a review for it if you have time.

MY UDEMY COURSES ARE 87.5% OFF TIL December 19th ($9.99) ONE IS FREE

Intro 00:00
Data Types 3:43
Math 6:58
Conditionals 10:53
Ternary Operator 15:20
Strings 16:35
Looping 19:11
Repeat Until 20:44
User Input 20:56
For 22:00
For In 22:29
Tables 23:41
Functions 28:26
Return Multiple Values 29:25
Variadic Functions 33:13
Closure 34:27
Coroutines 36:46
File I/O 40:10
Modules 43:32
Metatables 45:30
OOP 51:00
Inheritance 55:04

Like the channel? Consider becoming a Patreon! Check it out here:

*Watch More Learn in One Videos*
Рекомендации по теме
Комментарии
Автор

Learn in One Videos for Every Programming Language

derekbanas
Автор

Data Types 3:43
Math 6:58
Conditionals 10:53
Ternary Operator 15:20
Strings 16:35
Looping 19:11
Repeat Until 20:44
User Input 20:56
For 22:00
For In 22:29
Tables 23:41
Functions 28:26
Return Multiple Values 29:25
Variadic Functions 33:13
Closure 34:27
Coroutines 36:46
File I/O 40:10
Modules 43:32
Metatables 45:30
OOP 51:00
Inheritance 55:04

cazulon
Автор

I just discovered I had magical powers. A couple of days ago I was thinking "Man, I need to learn Lua... I wish Derek made one of his "learn X in an hour" videos. I wonder what else I can make happen...

Tetratronic
Автор

30:11 Just a note: after fiddling around with this, I've come to the conclusion that the caret (^) actually denotes NOT when it is the first character in the brackets. So [^%s] means character that is NOT a space.

The brackets themselves group the character search together, so [^%A%s]+ would be a pattern that matches characters that are NOT a non-alphabetic character or space, while + keeps matching the search as much as it can until returned nil! :)

ken
Автор

This is the perfect tutorial for anyone who is already familiar with a language and can keep up. It is refreshing to have a tutorial that dives straight in and lets me know what I need, and provides a cheat sheet. Fantastic! Well Done and Thank you!!!

MrBrenm
Автор

Great tutorial, thank you! Not sure if pointed out already, but you have 5%3 instead of 5.2%3 at 7:10, which is why you get 2 instead of 2.2 . 5.2%3 gives 2.2 in Lua.

jaspertanmusic
Автор

Any time I goto youtube and search for an item and see that it's by "Derek Banas" I immediately select it. These presentation are precise, well explained and accurate. I have NEVER been disappointed.

jackmanjls
Автор

I love the fast pace of your video. I just wanted a quick overview and this delivers. Your presentation is clear and accurate. Your video was posted 6 years ago and I just found it! Cheers and thank you very much.

kwikb
Автор

This is great, I love how your explanation goes in depth enough and at a very nice rate, not too fast, not too slow :)

PtaszekZPtasiegoMleczka
Автор

i'm watching this this video in 2022 and it is still perfect. no need to watch 10 hour long videos if you already understand programming and or know other languages

kimphuongtran
Автор

A linguagem que me enche de orgulho, apesar de nós brasileiros sermos muito explorados, existem muitas pessoas inteligentes nesse país Lua é só mais um exemplo disso, não podemos desvalorizar essas pessoas, e não podemos viver nas sombras dos países desenvolvidos temos que encontrar nosso próprio caminho, porque somos todos iguais, um dia ainda veremos nosso país brilhar.

jamaisnunca
Автор

I know this video's old, but just want to point out: your OOP example doesn't work! It works for a single instance of that object, but not for consecutive instances. If you create a second Animal, then BOTH animals will have the exact same values, as it basically just creates two aliases to the global Animal object.

This is because inside the constructor, "self" is referring to the global instance of Animal, not the new instance. The constructor needs to create a new table, assign "self" (the global Animal table) as its metatable index, and then return that new table. Your setmetatable() method at the beginning is a no-op, it does nothing without capturing its result into a variable.

Here's a working example:
function Animal:new(height, weight, name, sound)
newAnimal = setmetatable({}, { __index = self })
newAnimal.height = height
newAnimal.weight = weight
newAnimal.name = name

newAnimal.sound = sound
return newAnimal
end

josh.c
Автор

I can't thank you enough for all your videos. Your approach on topics, the way you make it all look like a piece of cake is amazing. I'm just so happy I've find your channel, and yours is the only one I get notifications on upload. Thanks a bunch.

Honda_Africa_Twin
Автор

I'm just commenting so I remember where I was: 14:20

Bennett_Hart
Автор

4:33
The precision of floating point numbers decreases as their value increases. That's why they are FLOATING point. Try this:
a =
b = a + 0.0001
print(b == a)
This prints true. You don't have 13 digits of precision.

przemysawkukulski
Автор

18:12 String indices in Lua start at 1.

biswanathbasak
Автор

Nice, By the way If you are totally new to programing, and never used any type of language, here is the list of languages to learn in order!;

Python - Easy to learn is similar to others - 1

Lua - Nice, and powerful and easy to understand if you learned a mother language - 2

Java - well, this is a popular game language but just get to under stand it and you will be good ;) - 3 1/2

C# - A very popular game language ProIsh language... You can easily find a job with this one its also very complex, but once you get use to it you will be in love with this one - 4

Language of Choice - NICE, you are a pro now, Have fun make some money or have a useful hobby! - 5

unusedacount
Автор

I was trying to code but this one coding language keeps kicking my ass.

xavierreardon
Автор

Game programming with lua is extremely easy

okandme
Автор

Scripting languages always creeps me out... not pre-defining variable types and not having to use curly brackets and semicolons feels really strange to me. Really awesome tutorial tough, I really like the speed especially for someone that already has a basic understanding of programming, since the basics are often very similar to other programming languages.

DreadDoom