There is something I can’t seem to comprehend.

If I am building an app that uses libraries. I’m installing the libraries on my computer, right?

Then I import the libraries to my app.

So if say my app is hosted on a server, do I also need to install the libraries on that host? Or does the app cart the parts it needs to run so it can do it independently without the library install?

I’m a little confused. 🤔

#asknostr

Reply to this note

Please Login to reply.

Discussion

You’re installing libraries in the source of the app to read locally. On server you do the same install the libs

Thanks. I finally get it.

Not gonna lie, I thought the app magically fetches what it needs from the internet that has the libraries. Like how we link images for example.

But this makes sense now.

We live to learn ✊🏾

?cid=2154d3d7i4wr38a7684ywgp43xu8kc8gcde9rz6buoxv8s94&ep=v1_gifs_search&rid=giphy.gif&ct=g

Ohhh yea brother

Your dependency package manager would install them all on the server. (npm, pip, yarn) Typically shipping library code with your app code is poor practice unless you have a strong reason for it. Let the package manager do it for you.

Search static vs dynamic linking.

tl;dr it depends on the language.

Python, Java Script, are dynamically linked.

Golang and some others are statically linked.

C, C++ no simply answer, goes both ways.