What are libraries?

In programming, what are libraries?

Pre written code that contains important/frequently used features that you can reuse

So, essentially a module?

char limit

Yes, people write libraries so other devs don’t have to spend more time writing what is basically the same thing. And when you want to make the same system across different games you can just get the same libraries and get the job done way quicker than starting from scratch

1 Like

Alright! So a library is almost the exact same as a module.

Yea, they are usually just classes and stuff in other languages, but lua doesn’t really have classes and the closest thing in roblox is a module script

Also since we’re at it here, what are Packages as well? Im trying to become familiar with a ton of programming terms.

as in general programming or roblox packages?

This can answer a lot of your terminology-based questions: Roblox Engine API Reference | Roblox Creator Documentation

But honestly if you’re looking for more information about concepts that apply to the superset of languages, you could blaze trails on Google. I’m sure there’s plenty of lonely comp-sci material that’s dying to be read.

1 Like

general programming.

character limit

I can’t really explain it that well but a package is just a group of similar stuff and you can import them easily and make changes and stuff. It’s pretty similar to a library. And yea like Boogaboogaguy said you can find a lot of the answers by googling and they probably explain it better than I do

Libraries are essentially a collection of scripts or code that can be reused, often in purpose of not reinventing the wheel. Sometimes they are classes, sometimes they are settings and sometimes they are data.

A script filled with data or types that can be reused. A lot

1 Like