this post was submitted on 18 Jan 2026
24 points (81.6% liked)

Programming

24501 readers
130 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

Today's software tools have weird names. We call a "library" some collection of functions that you can use in your program.

I think that software repositories (where apt downloads your programs from) should be the actual libraries, since that's where you go to get your information; Meanwhile individual packages of information should be called books because they are one solid object containing a bundle of information.

top 10 comments
sorted by: hot top controversial new old
[–] hperrin@lemmy.ca 21 points 1 day ago (1 children)

The term library in the context of software predates software repositories.

https://en.wikipedia.org/wiki/Library_(computing)

It’s basically as old as the computer itself.

[–] MotoAsh@piefed.social 15 points 1 day ago

Literal libraries of punch cards.

[–] eager_eagle@lemmy.world 10 points 1 day ago (1 children)

what are sections, chapters, indices? Who's the librarian?

we don't need to go all the way into a metaphor

[–] thenextguy@lemmy.world 11 points 1 day ago (1 children)
[–] eager_eagle@lemmy.world 5 points 1 day ago
[–] MotoAsh@piefed.social 7 points 1 day ago

I think repository makes more sense than library. A 'repo' is also a large storage of something that is very often indexed and catalogued for easy retrieval as well. It also at least 'feels' more appropriate for something usually remotely accessed, like package manager repos.

Of course, my well has been thoroughly poisoned on this topic, but I generally agree with others that an analogy doesn't and shouldn't have to carry through all the way.

[–] CombatWombatEsq@lemmy.world 2 points 1 day ago

The metapor is that the individual package is a library of exported functions (the books). Package managers are more like inter-library loans in this metaphor, but I think that is pushing the analogy further than is useful.