Re:Programmer interrupted: The cost of interruption and cont...
by asdff on Wednesday April 05, 2023 @05:14PM
(#35460459)
Its especially helpful for stuff where I haven't touched it in a while too. One alias and boom, I'm back in a session with a pane with my editor open, a pane with the log, a pane with some notes, and a pane with the shell displaying the last line of code I ran from when I was last working on this pet project over six months ago. Right where I left everything and I can jump back in as if I was working on it an hour ago.
[ Parent
| on HN ]
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:
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.
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!