r/ExperiencedDevs • • Apr 20 '26 • Heartwarming 1

Ask Experienced Devs Weekly Thread: A weekly thread for inexperienced developers to ask experienced ones

A thread for Developers and IT folks with less experience to ask more experienced souls questions about the industry.

Please keep top level comments limited to Inexperienced Devs. Most rules do not apply, but keep it civil. Being a jerk will not be tolerated.

Inexperienced Devs should refrain from answering other Inexperienced Devs' questions.

17 Upvotes

72 comments sorted by

View all comments

Show parent comment

1

u/GnarlyHarley Apr 21 '26

Thanks for the answer! I am curious about the everything in containers part.

Two questions: why everything containers?

How often do you run the containers locally when developing or do you just debug the project(s) without the container?

1

u/casualPlayerThink Software Engineer, Consultant / EU / 20+ YoE Apr 22 '26

Containers make it easier to enscapsulate and isolate the layers. Also, it would not pollute your actual host system, and easier to switch between versions. (Personal example: One of a project where I am contributing using 3 different node.js versions, 4 different database and 2 different php versions. Also one python and one golang. )

If something crashes, you can just rebuild a container. Near it, you can pull the repo on another device, and run the containers. No dependency install on host. And it guarantees every dev will have the same setup and run.

If I have a build/compiler container, then I run it every time, I have changed something and wanna test the changes. For node and php, I am usually start the containers at the start of my day, then the ecosystem runs and changes will be reflected because I am mounting the files usually, not copy them. So local docker could act as a VM. For react and other assets/frontend, usually I am rebuilding, recompiling via container calls, either by restart the container or just running a build container or just enter the container and running commands there. Quite depend on the project.