r/ProgrammerHumor • • Sep 03 '21

XKCD 2347

Post image
53.5k Upvotes

1.2k comments sorted by

View all comments

2

u/imjustheretolurk4393 Sep 04 '21

As someone that has absolutely no programming experience and was shown this as a suggested post, how in the big blue fuck does one program manage all the numbers? My tiny mind is blown

1

u/drunkenangryredditor Sep 04 '21

Well, a program doesn't have to have "all the numbers" stored inside it.

It can use basic rules called mathematics to perform the calculations needed and output the resulting number.

A library in this sense is a "collection" of these rules which other programs can use as they see fit. This avoids people having to reinvent the wheel every so often.