News for hackers. Stuff that matters.
Re:Advice to a Novice Programmer by hu3 on Wednesday October 25, 2023 @03:55PM (#38017444)
That's just the python interpreter inside Docker being called from outside Docker. That's basically a configuration to call:

docker exec -i container_name python3 myfile.py

What VSCode does is much more powerful. It's as if you opened VSCode from inside the container. It works because VSCode installs a server inside the container so the world is now your container and you get full isolation, precise tooling and other goodies.

In my case the development Docker file has all dependencies devs need to work on the project. No need to fight with versions of npm, node, Python, Java, Go, nginx, Caddy, yada yada. Everything is configured in the Docker file. Everyone on the team gets a copy of the exact same environment.

We could even attach to a remote container running somewhere in "the cloud" if we wanted to.

Re:Advice to a Novice Programmer by lopatin on Wednesday October 25, 2023 @04:28PM (#38017913)
I believe that IntelliJ can do this for remote servers. It installs an IntelliJ agent on the server and it’s like remote development, your real IDE becomes a lightweight client of it.
Re:Advice to a Novice Programmer by andrewstuart on Wednesday October 25, 2023 @04:37PM (#38018026)
This?

https://www.jetbrains.com/help/idea/remote-development-a.htm...

JetBrains Gateway is a lightweight launcher that connects a remote server with your local machine, downloads necessary components on the backend, and opens your project in JetBrains Client.

Re:Advice to a Novice Programmer by hu3 on Wednesday October 25, 2023 @04:46PM (#38018136)
That requires SSH daemon running inside Docker.

Plus it looks broken from the comments on https://youtrack.jetbrains.com/issue/IDEA-226455

> Peter commented 21 Feb 2023 11:23

> Remote development is my biggest JB disappointment. After years of development, it still doesn't work -- is too slow, buggy, crashes all the time, with most features just missing. Seems like they can't do it.

Last comment is from 16 May where they just closed the issue (and other related issues) with the same message.

In VSCode these things just work. And it needs no SSH to attach to a Docker container.