News for hackers. Stuff that matters.
Re:Virtualizing Development Environments in 2023 by black3r on Friday August 04, 2023 @06:44PM (#37006859)
If you work from the same computer in the same place everyday there are no advantages to having a remote box... If you work 50:50 from office & home you start getting annoyed by either having a different environment at home & work or by having to drag your laptop around with you... If you're a digital nomad wanting to work while travelling through "cheaper" parts of the world it's less worrying to carry around a $500 laptop than a $4000 laptop...
Re:Virtualizing Development Environments in 2023 by stephenr on Friday August 04, 2023 @08:55PM (#37007826)
> you start getting annoyed ... by having to drag your laptop around with you

I'm sorry but you just lost me completely. If you're not taking a laptop with you, what's the fucking point of having a laptop?

Re:Virtualizing Development Environments in 2023 by fbdab103 on Saturday August 05, 2023 @12:35AM (#37009058)
So people can see the stickers of the conferences you have attended?
Re:Virtualizing Development Environments in 2023 by black3r on Saturday August 05, 2023 @07:12AM (#37010905)
it was an either/or statement.., if you don't have a remote devbox your choice is either having to deal with the fact that your home work environment is different from your work environment at the office and you have to set up lots of things twice and encounter some weird issues even if you try to keep them in sync (more problematic for less experienced devs in fast moving companies), or your choice is using a laptop and carrying it with you even if you do have a more powerful PC at home, have the option of having a more powerful desktop at work and would otherwise prefer desktops to laptops...
Re:Virtualizing Development Environments in 2023 by stephenr on Saturday August 05, 2023 @07:20AM (#37010930)
Automated reproducible VMs are pretty straight forward with vagrant, and "setup the same thing from a defined set of instructions" is basically the definition of docker.

But if you're not happy with that scenario - I don't know maybe your work will be drastically affected if you have two different but identical VMs - tb3/4 external ssds are perfect for storing VMs on, so that you can move between machines at the drop of a hat. I've been doing this for about 5 years as a safety valve to my desktop having a fault: I can just unplug the drive and plug it into the laptop or a new machine and the VMs are all there exactly as I left them.

Re:Virtualizing Development Environments in 2023 by black3r on Saturday August 05, 2023 @07:59AM (#37011158)
Doing a reproducible build with Vagrant and Docker is possible but very far from straight forward as you have to make extra sure that you use the exact same source box/image and install every software in the exact same version and deal with updates manually (and while most of the time updates don't break stuff anymore, it still happens at least once a year) + you still have to deal with synchronizing your IDE settings, secrets & credentials which you don't want baked into a Docker image, ... again yes it's possible, but not as straightforward as working in the exact same environment...

the VM on an external SSD is a better solution, but then it's still something you have to carry with you even though it's more compact than a laptop...

Re:Virtualizing Development Environments in 2023 by pushtheenvelope on Saturday August 05, 2023 @10:02AM (#37012104)
blackr, if you'd allow a small plug: we develop https://jetpack.io/devbox for this very scenario.

Devbox will give you the same project environment (packages, env-vars) on your work and home laptop. It leverages nix, and uses your native file-system avoiding the overhead and complexity of using Docker.

Re:Virtualizing Development Environments in 2023 by atq2119 on Saturday August 05, 2023 @09:33AM (#37011850)
As someone who has actually traveled through "cheaper" parts of the world, I couldn't imagine working without a local environment. Cheaper parts of the world often imply worse internet connections, spotty wifi, and so on. Requiring a stable internet connection for everything would have been a productivity killer.