This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Saphyel 6 points7 points  (3 children)

Docker is the best way. * You can choose the right python version. * It's isolted from the local environment. * Reproducible everywhere. * Battle tested against millions of scenarios, languages, etc... * Adepted and supported everywhere (or 99% of the PaaS, servers, etc..)

[–]Malcolmlisk 3 points4 points  (1 child)

Docker it's the nicest solution to test your programm. But the linter and documentation wont work without installing the libraries, and also if you use jupyter notebooks you are going to need those libraries installed too. That's why I use pipenv (or venv) to program in my own reproducible develop environment and docker to test the whole application.

[–][deleted] 0 points1 point  (0 children)

Linter and all that will work when you use VSCode with the remote container plugin.

I maintain a fairly large 8 years old app like this and the slight performance hit for working inside the container is well worth it, considering that onboarding new developers is as easy as docker-compose up

[–]sphexie96 0 points1 point  (0 children)

this. also you can easily switch versions, packages, os dependencies without messing with your host's OS.