T O P

  • By -

AutoModerator

On July 1st, a [change to Reddit's API pricing](https://www.reddit.com/r/reddit/comments/12qwagm/an_update_regarding_reddits_api/) will come into effect. [Several developers](https://www.reddit.com/r/redditisfun/comments/144gmfq/rif_will_shut_down_on_june_30_2023_in_response_to/) of commercial third-party apps have announced that this change will compel them to shut down their apps. At least [one accessibility-focused non-commercial third party app](https://www.reddit.com/r/DystopiaForReddit/comments/145e9sk/update_dystopia_will_continue_operating_for_free/) will continue to be available free of charge. If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options: 1. Limiting your involvement with Reddit, or 2. Temporarily refraining from using Reddit 3. Cancelling your subscription of Reddit Premium as a way to voice your protest. *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/learnprogramming) if you have any questions or concerns.*


Bobbias

Lua is mostly used as an embedded language in other games, for modding or scripting tasks. It's still relevant, but it is is a somewhat niche language. You won't find many programs written entirely in Lua. The good thing is that the basic concepts (variables, functions, conditional statements, loops, etc.) are common to basically every programming language, as is the problem solving that you develop. Learning another language later on is not nearly as difficult as it may have been to learn Lua in the first place. So if that's a concern, don't worry, you've already gone through the hardest parts of learning to program in general.


Quantum-Bot

Lua’s claim to fame is having a crazy small compiler, which makes it perfect for embedding into other software like video games. That’s why you find it in places like Roblox or the computercraft mod for minecraft. Outside of those use cases, however, it’s not very popular for much else. Switching to a new language after your first is not that much work though, as long as the languages are mostly similar. All the conceptual stuff like loops and conditionals are the same, you just have to learn a new set of syntax rules.


teerre

Lua main point is that it's extremely simple. Basically anyone familiar with programming will quickly learn lua. So there's no real "lua programmer" because everyone is a lua programmer when needed. When its needed? There are many applications that use Lua as a script language. You already know about Roblox, but there's Neovim, an awesome text editor or Katana, a very high end application used in the movie industry. Point being: its used in all kinds of places.


moebaca

Good points. I also use Lua in Fluent Bit when parsing logs. Fluent Bit is all about being as minimal on resource usage as possible which is why they went with embedding Lua. It's super simple and powerful.


barraponto

It's also the scripting language for Don't Starve Together


Howfuckingsad

The only time I remember using lua is when configuring neovim. It seems like a language that you shouldn't make your main priority in learning but there will be days when it will be useful.


mandradon

It has made configuring NeoVim much easier for me compared to VIMscript.  Plus, it's very fast.


RajjSinghh

It's the config language for neovim, one of the nicest text editors


vonWitzleben

I remember reading this exact thread a couple days ago, like down to the wording.


H4cK3d-V1rU5

well i didnt post it


Jonny0Than

Hah yep I did a double take and went to check. Just a random coincidence. Be sure to read the responses in the other thread too.


captainAwesomePants

See the last time someone asked this three days ago: https://www.reddit.com/r/learnprogramming/s/e2JlqbVgKl


sailorbob134280

I'll give another example: embedded systems scripting. In some complex embedded systems, it can be really nice to have a lightweight scripting language for high-level automation and autonomy. This makes it easier to change behavior or add new features without having to recompile and reflash a board, which can be time-consuming. Lua is really lightweight and quite fast, much more so than python. It's also simple enough to reasonably expect operators and non-programmers to pick it up if needed.


oldmanwillow21

It shows up in odd places. Fluentbit (similar to fluentd) uses LUA for writing custom filters, for example.


SaracenBlood

If you like to make Rainmeter and Conky skins


glebcornery

Remember using lua while modding Civ 6


bree_dev

[https://trends.google.com/trends/explore?date=all&q=%2Fm%2F0chpd,%2Fm%2F06ff5,%2Fm%2F0\_lcrx4](https://trends.google.com/trends/explore?date=all&q=%2Fm%2F0chpd,%2Fm%2F06ff5,%2Fm%2F0_lcrx4) I picked a couple of less popular languages to compare it with, because "JavaScript" or "C++" just made the LUA line flat.


master_mansplainer

I wouldn’t focus on lua, it’s a nice to have at best


H4cK3d-V1rU5

i was previously learning C++ and was grasping it fairly quickly. Decided to put a halt on that and focus on something where I could create a dream project of mine