News for hackers. Stuff that matters.
Re:Programmer interrupted: The cost of interruption and cont... by darkteflon on Wednesday April 05, 2023 @05:55PM (#35460917)
I have a separate VS Code window connected to a dev container for each project that stays open for days, weeks or months at a time. Does the tmux approach materially improve upon that setup? Genuinely curious if I’m missing out on something here.
Re:Programmer interrupted: The cost of interruption and cont... by asdff on Wednesday April 05, 2023 @06:43PM (#35461475)
You can end up pretty deep down the rabbit hole with tmux and configuring it in different ways. One thing you can do that you might not be able to do with your vscode set up is have a script, written in tmux commands, that generates a complicated windowing environment. I am not familiar with the capabilities of your setup though, since I don't use vscode. I would guess tmux is more comfortable than vscode for using it with just the keyboard too.

There's a ton written on tmux as you can imagine by this point. This page seems pretty comprehensive on the advanced features including tmux scripting:

https://github.com/tmux/tmux/wiki/Advanced-Use

Re:Programmer interrupted: The cost of interruption and cont... by thepostman0 on Wednesday April 05, 2023 @06:03PM (#35461006)
Maybe, you can SSH to GNU Screen and attach where you were, perhaps from your phone to just read. You could do the same with rdesktop to something x11, but you'd need more than a 256MB VM for that. If you have this running 24x365 then you'd spend more energy/money.
Re:Programmer interrupted: The cost of interruption and cont... by throwbadubadu on Wednesday April 05, 2023 @06:45PM (#35461499)
To all above: but machines reboot, also, not? Even our coorp Linuxes now succumb to ugly IT update reboot cycles, Cloud VMs even more ephemeral, and lets not even start with dev containers... One can script tmux sessions to some degree, but still loosing a lot of state (editor open ther, shell history here..).
Re:Programmer interrupted: The cost of interruption and cont... by asdff on Wednesday April 05, 2023 @07:06PM (#35461711)
I hardly reboot a machine unless I am intending to, but there are plugins for tmux for this too.

https://github.com/tmux-plugins/tmux-resurrect

https://github.com/tmux-plugins/tmux-continuum

Re:Programmer interrupted: The cost of interruption and cont... by t-3 on Wednesday April 05, 2023 @08:06PM (#35462290)
Rebooting my dev boxes for security updates or kernel upgrades once every few months/year isn't a big deal, and I generally know when it's going down. The laptop is an ssh terminal/browser/doc reader only!
Re:Programmer interrupted: The cost of interruption and cont... by visarga on Thursday April 06, 2023 @01:39AM (#35464564)
Me too, that's why I don't care how old it is anymore.