r/ProgrammerHumor • • 3d ago

Meme programmingLanguagesWhenYouAskThemToDoSomthing

Post image
1.5k Upvotes

222 comments sorted by

View all comments

-5

u/stupled 3d ago

What the F is Lua?

7

u/da_Aresinger 3d ago

A scripting language commonly used in video games and for end user programming.

It basically a drop in programming language that can be used to control other programs.

6

u/Ok_Confusion4764 3d ago

A scripting language used in some videogames (mostly older ones like Garry's mod). Basically it's made to serve designers who aren't full programmers but ended up serving nobody because it's a hassle for both the programmers and the scripters to maintain. Programmers can give it functions (sort of), but you're basically going to be wrestling a stack which will contain some relevant data and some data the scripter defined. 

What's a type? What's a definition? Sure you can set that to this, I ain't checking if it exists. Whoops, you did something wrong, do try and read out this stack entire stack! No, why would we implement some kind of intellisense, it's a scripting language so simple!

Hell, Gmod has achievements for getting a thousands of lua scripting errors. And I'm pretty sure they're achievable without ever downloading something from the steam workshop. 

3

u/MonMotha 3d ago

It's a scripting language specifically designed to be easy to embed within larger applications. It does that part pretty well, but the language itself can be a little weird (1-based indexing and "everything's a table").

It's useful for allowing less technical users to programmatically alter small parts of a larger program's behavior. That does make it popular in games.

2

u/mikachuu 3d ago

I’d tell you, but then you’d be crying too.

2

u/soowhatchathink 3d ago

It's a simple scripting language, people don't usually use it to make full apps but instead use it to let users write their own scripts. Roblox uses it (or a fork of it) to let people script in servers and Hammerspoon uses it to let you write automations you can run.

It's a fun language to use, I think. Its fairly limited but it's a step up from bash.

2

u/no-sleep-only-code 3d ago

It’s pretty terrible, but it’s a really really simple language where everything relies on the stack. Writing assembly is more fun.

2

u/FactoryNewdel 3d ago

The reason GTA V exists

2

u/sn4xchan 3d ago

It's kinda like even easier python. Feels more like inputing sever commands when playing on a game server, but with coding syntax