r/learnprogramming • • Apr 05 '22

Name one programming/comp sci concept you never understood and if you understand it, try to explain it to them

Name a programming concept such as virtual functions, pointers, certain algorithms, etc that you always had a hard time understanding and why.

Someone else who reads yours and does understand it, try to explain it to them to help them learn

1.6k Upvotes

738 comments sorted by

View all comments

Show parent comments

3

u/Gamithon24 Apr 05 '22

Does this mean dependencies aren't shared between Dockers. Meaning the same dependency can be installed on the same machine multiple times?

3

u/MrSloppyPants Apr 05 '22

Yes, but that's exactly what you want. If three apps all share a dependency on Postgres and then one of the apps needs to update it, the other 2 apps can have unintended side effects. By keeping things containerized, you isolate an app package from anyone else altering it or its dependencies