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

12

u/[deleted] Apr 05 '22

I don’t understand for what Docker is used or in what projects I should use it

20

u/TheNintendoWii Apr 05 '22

Docker is used when you have something that needs a special environment. Let’s say it’s a Python project that needs a lot of packages. Instead of installing everything on each machine you have it on, you build a Docker image with all packages installed, so you can run that and everything’s set up. It also separates the program from the host machine, adding security.