DEV Community

Discussion on: Explain Like I'm Five: What's a standard library?

Collapse
 
chrisvasqm profile image
Christian Vasquez • Edited

LEGOs

When you buy a box of LEGOs pieces you get a bunch of different parts that may vary in shape, size and colors. All these small pieces can be attached to each other in different ways so that you are capable of building whatever your imagination desires.

Wanna make a car?

Go ahead and do it.

Wanna build a house?

You probably can.

How about a fake gun?

Yep. What are waiting for?

All these LEGO pieces can be considered as methods and classes that come pre-prepared by the language you are using so you you don't have to rebuild the wheel every single time you want to make a new project.