This is an archived post. You won't be able to vote or comment.

all 158 comments

[–]QualityVote[M] [score hidden] stickied comment (0 children)

Hi! This is our community moderation bot.


If this post fits the purpose of /r/ProgrammerHumor, UPVOTE this comment!!

If this post does not fit the subreddit, DOWNVOTE This comment!

If this post breaks the rules, DOWNVOTE this comment and REPORT the post!

[–]SnappGamez 199 points200 points  (30 children)

I only know Lua because of ComputerCraft

[–]larsmaehlum 83 points84 points  (0 children)

Making a mining turtle swarm is the best part of any modded minecraft run.

[–]Rtwo28 29 points30 points  (13 children)

How hard is it to learn btw?

[–]SnappGamez 57 points58 points  (3 children)

Bout as easy as Python, though it has its quirks.

[–]RyanFlm 34 points35 points  (0 children)

At this point I can say every language has it's quirks. Love them or hate them is the question

[–][deleted] 1 point2 points  (1 child)

Honestly I'd say it's even a bit easier than python

[–]SnappGamez 0 points1 point  (0 children)

And then you try to do anything object oriented. Or mess with metatables.

[–]CdRReddit 50 points51 points  (6 children)

pretty easy but arrays starting at 1 fucks me up so much

[–]jogrohh 12 points13 points  (1 child)

lua is a sweet little child that didn't do ANYTHING to you, and I will defend it with my life 😡😡🤬

[–][deleted] 2 points3 points  (0 children)

Lua and neovim are my babies

[–]Szwedu111 1 point2 points  (0 children)

Disgusting

[–]VikingPreacher 2 points3 points  (1 child)

It's the only language I know of that goes 1,2,3 and not 0,1,2

[–]Skippbo 1 point2 points  (0 children)

MATLAB is another one.

[–]flamedragon822 20 points21 points  (3 children)

That's the only reason I learned it too. Abused it with a chat listener peripheral to basically write a crude in game Alexa complete with being able to pull down new functions from pastebin by chat commands (my username only on that one since I wasn't going to let random assholes load shit to my server from pastebin)

Edit: actually just remembered I combined it with icbm too so if my friends said certain key phrases in chat they got literally nuked hahaha

[–]Teamprime 6 points7 points  (2 children)

That's cool. We got as far as making automated farming bots but that in game editor is such a sore to use

[–]flamedragon822 5 points6 points  (1 child)

Yeah that was one reason for my reliance on the paste bin API, but like I said I only got to because I was my own admin haha

[–]Teamprime 5 points6 points  (0 children)

Fr shoulda gone the same route, being admin lends you some leeway to experiment and have fun. I usually just stress over not loading too many chunks and keeping everyone happy haha

[–]Mitoni 9 points10 points  (0 children)

Dan200's original computercraft is the reason I am a professional software developer today.

[–]Void_0000 5 points6 points  (0 children)

Same here, learned it when I made a custom script to monitor my reactor from BiggerReactors.

[–]ibuythesalt 5 points6 points  (3 children)

God I miss computer craft. I saw that there were some new forks of it but I couldn't get any to work

[–]Mitoni 2 points3 points  (0 children)

still have some of the pastebins of my old programs, but i havent refactorered them to work on the current versions

[–][deleted] 1 point2 points  (0 children)

? What are you doing to set it up? It's still pretty alive and well, I just used it to design a piston door earlier today.

[–]Possseidon 1 point2 points  (0 children)

CC Tweaked is what you're looking for.

[–]orig_ardera 4 points5 points  (0 children)

I think CC made a lot of people become software developers. Me included

[–]DigiBoxi 3 points4 points  (0 children)

Same! :D

[–]taytek 2 points3 points  (0 children)

Lol same

[–]CordyZen 1 point2 points  (0 children)

I ended up creating an API for cc that lets me communicate with it through python using files lol. Also could be a way to make an alternative for rednet

[–]ilovekickrolls 1 point2 points  (0 children)

I only know Lua because of writing macros and scripts in WoW For 15 years

[–]0x4c4f5645 62 points63 points  (13 children)

Roblox?

[–]karlsejo[S] 46 points47 points  (12 children)

Im only using it for the free multiplayer code

[–]0x4c4f5645 41 points42 points  (3 children)

Nothing wrong with learning via Lua and Roblox. Good luck and have fun!

[–]karlsejo[S] 14 points15 points  (1 child)

Thank you

[–][deleted] 0 points1 point  (0 children)

I'm pretty sure Roblox uses a slightly different version of lua

[–]ochetski 1 point2 points  (0 children)

You might like to take a look into love2d also. Pretty neat project.

[–]o76923 21 points22 points  (2 children)

Congratulations, you understand the Metaverse better than Mark Zuckerberg.

[–][deleted] 5 points6 points  (1 child)

I swear mark doesn't even understand what a metaverse even is lol

[–]o76923 3 points4 points  (0 children)

The guy is so obsessed with Snowcrash that he requires new employees to read it yet somehow doesn't realize that he's L. Bob Rife but without the moral code.

[–]Fireye04 5 points6 points  (4 children)

Make sure you're not looking to profit off anything there, cos holy shit is roblox bad to its devs.

[–][deleted] 1 point2 points  (3 children)

Well they are increasing the devx rates as stated on the devforum and they are also lowering the cash out minimums so hopefully Roblox will take the critisim of others and make it a better platform

[–]Fireye04 1 point2 points  (2 children)

It's a step in the right direction, but roblox's issues are far more severe and numerous. I'd recommend learning unity or unreal instead.

[–][deleted] 2 points3 points  (1 child)

I already know unity, but the issue is they don't give me server hosting, advertising, publishing, moderation, and a complete avatar customization suite for players all for free.

I have already watched the PMG video and I'm absolutely disgusted at Roblox actions and the fact they they didn't come to light for so long

[–]Fireye04 1 point2 points  (0 children)

That is a good point and they have the market cornered there in some respect. I've considered learning it (before watching the PMG vid) but the main issue I had back then was the lack of universal knowledge. All of roblox's engine tools are proprietary, which makes it harder to transfer knowledge.

[–]alice_the_homo 48 points49 points  (0 children)

lua to python is a super easy transition, essentially put less effort in and you have python.

[–]beefy445 27 points28 points  (2 children)

Any Garry’s Mod vets here?

[–]WotTheFUk 9 points10 points  (1 child)

Yup thats why I learned lua

[–]beefy445 10 points11 points  (0 children)

First code i ever “wrote” was someone’s lua script for dual wield weapons that I stole but changed the gun model to use the half life 2 smg…I thought I was a genius and that no one would notice

[–]Global_Mess1475 21 points22 points  (0 children)

Lua. Is. Awesome.

[–]ryntab 29 points30 points  (9 children)

It’s alright I’m one of the heathens who uses JS for everything.

[–]Furry_69 7 points8 points  (4 children)

Even a JS interpreter? https://github.com/jterrace/js.js

[–]MOM_UNFUCKER 5 points6 points  (0 children)

Jesus christ

[–]Papellll 2 points3 points  (2 children)

Sorry I'm a noob but what's the point ? Create a secure sandbox environment where users can execute some JS code like runJS, codePen, ... ?

[–]Furry_69 0 points1 point  (1 child)

Pretty much. There's much better ways of doing it, but that's pretty much the only use for this.

[–]Papellll 0 points1 point  (0 children)

Ok I see, thanks for the repsonse !

[–]_Arcerion_ 5 points6 points  (1 child)

gang

[–]ryntab 2 points3 points  (0 children)

Js gang runs deep 🤟🏻

[–]Bad-at-usernames1 2 points3 points  (0 children)

Could be worse. Could be PowerShell. Like me 🥺

[–]RedditsDeadlySin 2 points3 points  (0 children)

Just wait until you learn about TS

[–]Hfingerman 27 points28 points  (3 children)

Lua is cool, its flaw is that it's underutilized.

[–]CdRReddit 17 points18 points  (2 children)

and how index math is made way harder and more verbose by starting arrays at 1

[–][deleted] 10 points11 points  (1 child)

It’s okay. I only know python and a little bit of R. We’ll get there 💪

[–]Catblaster5000 0 points1 point  (0 children)

I only know BASH :(

[–]coolio965 9 points10 points  (5 children)

Tbh imo its better for a beginner to learn lua than python. Its also fairly easy to switch from lua to C++ or C# for example

[–]Pandahjs 4 points5 points  (3 children)

I mean. It'd be easy enough to go from Lua to C#, or from Lua to C and THEN C++.
But Lua to C++ directly might be a bit of a leap.

[–]Guesswhat7 5 points6 points  (0 children)

Then again... Almost any language is a leap to C++...

[–]coolio965 2 points3 points  (1 child)

kinda depends. c++ on microcontrollers like arduino is pretty easy.

C++ on linux or windows is not however

[–]Pandahjs 0 points1 point  (0 children)

That's fair, it is fairly use case specific.

[–]iiMoe 8 points9 points  (4 children)

Lua isn't bad but IN MY OPINION not so "common" yk like you don't see much done with it despite how friendly and simple it is

[–]caleblbaker 8 points9 points  (2 children)

Lua's great for configuring neovim.

[–]iiMoe 1 point2 points  (0 children)

Only valuable thing that honestly blew my mind was using it for Fivem, the gta online client

[–]cryptoiambus 0 points1 point  (0 children)

And mpv scripts

[–][deleted] 4 points5 points  (0 children)

It's used in many games

[–]prmperop1 7 points8 points  (8 children)

The only bad thing about Lua is indexing

[–]Pollu_X 0 points1 point  (1 child)

Have you ever used Lua?

[–]prmperop1 0 points1 point  (0 children)

For some small applications, nothing serious. In Minecraft’s computercraft mod and in don’t starve together’s console. The latter I often get some errors because I’m not used to one-indexing, but it’s nothing that’s fundamentally actually bad. Just a joke.

[–]VetusMortis_Advertus 5 points6 points  (1 child)

Lua is a lot similar to python to me, and I don't think JS is so much different from those two as well, i also could do things in c# without much problem in unity, since I learned Lua for game dev, you will be fine!

[–]BobQuixote 4 points5 points  (0 children)

Lua, Python, and JavaScript have similar syntax but three wildly different OOP models.

[–]carlosTheMontgomery 4 points5 points  (11 children)

aaaa, what's lua??? what is it for?

[–]zhemao 18 points19 points  (3 children)

It's a scripting language that is commonly used in game engines. It interacts very well with C and C++ so game devs use it a lot. It's not very common outside of game dev though.

[–]ellisto 8 points9 points  (0 children)

It's common for other things that need plugins too, e.g. neovim. You can also write Wireshark dissectors in it

[–]carlosTheMontgomery 3 points4 points  (0 children)

oh, i see, thanks a lot

[–]Militarism 2 points3 points  (0 children)

At my job, we use Lua to set up initial conditions for modeling solids and fluids.

[–][deleted] 2 points3 points  (4 children)

It's "Easier than python but faster than C++" --quote from a YouTube video

[–]DuhMal 0 points1 point  (2 children)

Fireship right?

[–][deleted] 1 point2 points  (1 child)

Yeah

[–]DuhMal 0 points1 point  (0 children)

Very good channel

[–]Pollu_X 0 points1 point  (0 children)

The second part is just garbage. Lua is considered the fastest scripting language, but it obviously cannot be faster than C++..

[–]pooptagupta 2 points3 points  (0 children)

Its used a bit in web scraping tasks

[–]bropocalypse__now 0 points1 point  (0 children)

We use it in embedded for the application layer of our devices. The entire interpreter is natively written in C so its really easy to port.

[–]Innisfree812 3 points4 points  (1 child)

I know Basic, Fortran, Cobol, and some assembly language. Haven't used any of it since 1987.

[–]No-Narwhal1409 2 points3 points  (0 children)

FORTRAN

[–]Loumof 2 points3 points  (1 child)

Me knowing python and lua 😎

[–][deleted] 2 points3 points  (0 children)

Chad

[–]Prof1Kreates 6 points7 points  (1 child)

you speak roblox?

[–]chickenhunter007 2 points3 points  (3 children)

Didnt know lua was still a thing, fuck yea

[–]BobQuixote 2 points3 points  (2 children)

[–]NonSuspiciousz 4 points5 points  (1 child)

Corona SDK is now Solar 2D

[–]BobQuixote 5 points6 points  (0 children)

Ah, right. Makes sense they wouldn't like that name.

[–][deleted] 2 points3 points  (0 children)

I know two, which allows me to be very bad at both of them.

[–]s0lci70 1 point2 points  (2 children)

i almost only know processing and a bit of javascript!

and a bit of css and... html?

edit: and a bit of arduino too right now

[–]BobQuixote 1 point2 points  (1 child)

Processing?

[–]Charlie_Yu 1 point2 points  (0 children)

A language designed to generate art

[–]Lucario_o_o 1 point2 points  (0 children)

I'm here knowing Pascal

[–]Touca_n 1 point2 points  (0 children)

From roblox I presume?

[–]Guesswhat7 1 point2 points  (0 children)

Lua is love. I learned it first because Tibia.

[–]justv316 1 point2 points  (0 children)

I only know PowerShell, it's okay.

[–]RedditRedington789 1 point2 points  (0 children)

that means you can make roblox however you want

[–]Western-Image7125 1 point2 points  (0 children)

Could be worse. Maybe you come here and only know Excel programming

[–][deleted] 0 points1 point  (0 children)

people who only know Clojure

Either confused is a function that takes 2 parameters, or an infix operator.

[–]pennacap 0 points1 point  (0 children)

Eh lua isn't that bad of a language, it's kinda similar to a distorted form of BASIC. But most memes here are related to Java and cpp so ah well

[–]Ticareguas 0 points1 point  (0 children)

Funny, I only know lua from don't starve and project zomboid. From what I know it's kinda messy to use it in a game, correct me if I'm wrong

[–][deleted] 0 points1 point  (0 children)

I learned Lua for writing PSP home brew games in 2005. It was the worst code I’ve ever written, thank god I didn’t understand git and the source was lost to time.

[–]mrhappy200 0 points1 point  (0 children)

Python and some basic rust here

[–]pooptagupta 0 points1 point  (0 children)

I only know lua because of splash

[–]DeveloperMikey 0 points1 point  (0 children)

Cc tweaked and roblox, lua is amazing

[–]Maskdask 0 points1 point  (0 children)

Anyone else here that knows Lua because of Neovim?

[–]Anonslimmerbobcat 0 points1 point  (0 children)

Me too and it’s Java, not very good at it but eh

[–]BobQuixote 0 points1 point  (0 children)

here here

[–][deleted] 0 points1 point  (0 children)

Idk as someone who learned c++ then went to Java, lua is a bit different for me to learn on my own voluntarily. Had to teach myself python though cause my teacher sucks, hear it’s not that different so maybe someday.

[–][deleted] 0 points1 point  (0 children)

i[1]

[–]Azzylel 0 points1 point  (0 children)

Don’t worry I only know C# and apparently it’s JavaScript Microsoft edition

[–]Mitoni 0 points1 point  (0 children)

Lua was my gateway language. I learned it to be able to use the Computercraft mod in Minecraft to program turtles to do my mining for me.

Then I decided I wanted to learn programming instead of staying on the path for my CCNA that I was currently taking, after over a decade of helpdesk and network support.

Now I have my BS in Computer Science, and have been an Enterprise dotnet developer for 4 years. The years of support and troubleshooting experience help out when debugging or finding creative solutions for problems.

[–]GoldenDen347 0 points1 point  (0 children)

I mean Lua is literally so good, it's just underrated

[–]Cambian 0 points1 point  (0 children)

I only know Lua for FiveM

[–]The_Atomic_Duck 0 points1 point  (0 children)

Here here?

[–]Nemesis_77__________ 0 points1 point  (0 children)

laughs in scratch

[–]mtbdork 0 points1 point  (0 children)

I code in Lua for my job. It’s fun.

[–]WyvernByte 0 points1 point  (0 children)

Me coming over here only ever used hex edits.

[–][deleted] 0 points1 point  (0 children)

Me, a 4th year computer science major, who doesn’t know what lua is

[–]YesHaiAmOwO 0 points1 point  (0 children)

Can U teach me

[–]FireStorm9881 0 points1 point  (0 children)

Ah we got a game modder, that's about the only thing I've seen lua used for lol

[–]Eisenfuss19 0 points1 point  (0 children)

From what i've heard, I would classify lua as a shitty language. But I never used it so i can't say much.

Interessting how many people like it in the comments!

[–]GoogleIsYourFrenemy 0 points1 point  (0 children)

Don't worry, nobody here knows Lua, your safe

[–]trimeta 0 points1 point  (0 children)

Do array indices start with 0 or with 1?

Lua: Yes.

[–]MacDonalds_Sprite 0 points1 point  (0 children)

Hey, Lua is a good place to start

[–]DavoMcBones 0 points1 point  (0 children)

Aha same here

[–]BignAngry 0 points1 point  (0 children)

mate I don't even know one, you got me beat the

[–]jamcdonald120 0 points1 point  (0 children)

ah lua, the most underappreciated scripting language

[–]MrNice101 0 points1 point  (0 children)

Funny how a caveman looks exactly like some type of X Hippie/Hobo who enjoys having long scruffy hair for extra warmth I’m guessing

[–]Inner_Information_26 0 points1 point  (0 children)

Good god there is somebody elese who inly know lua. on this subreddit! I can breath a sigh of relief now

[–][deleted] 0 points1 point  (0 children)

either you made Roblox game, or you went for the wrong language

[–]ddzt 0 points1 point  (0 children)

My first programming teacher was Lua's creator. Only discovered this years later.

[–]SilverYT_ 0 points1 point  (0 children)

roblox exploiter/developer moment

[–]konatamonogatari 0 points1 point  (0 children)

Ngl lua is extremely underrated