Lurker News
I recently started integrating tmux and vim into my workflows. Obviously, it was a huge efficiency booster. What are some other tools (custom built or off-the-shelf), hotkeys, workflows that were game-changing for you as a dev? I'm interested in hearing about anything and everything (stuff from ctrl+l to clear the terminal to little-known git commands to larger-scale strategies like CI/CD)

Comments (522) 158 threads

Earlier comments
jpitz1 reply#
I love continuous feedback.

I set up automation in my development to run quick tools like code formatting, linting, and unit tests together.
I'll use tmux to split my terminal into an editor window on the right, and on the left, I'll have a tool like watchman or entr watching for changes to my code, and running those tools e.g.

    find . -name "*py" | entr make continuous
I also have some conventions about my tmux windows. Window 0 is where my music client lives in pane 0, and usually I'll run things like homebrew updates in other panes there.

I have a tmux keybinding that sends the "Next song" key to window zero pane zero. No matter where else I am in that terminal session, that keybinding skips to the next song.
I have another pair of tmux keys that activate/deactivate a particular openconnect vpn connection in a new pane, with a pause so i can see it complete, then it goes away. Part of my tmux status line is a single character - a C or a D, that indicates that vpn connection status as connected or disconnected.

pkghost#
I love entr! It's been part of literally every development environment I setup since I discovered it.

Re tmux: I have a function in my fish config (used to be zsh) that runs when I changed directories; if there is a `.tmux` script in the new directory, the function looks for a tmux session by the name of the directory, attaching if it exists, and, if it does not, creating a new session by running `.tmux`, which creates a handful of windows with my file watchers, build runners, container managers, etc etc. So all I have to do to boot up a project environment is move into the src directory, and poof — all the scripts that build source, run containers, and restart things on various config file changes get booted up immediately.

MauranKilom3 replies#
- Your eyes are the only broadband connection into the brain, and they have millenia of pattern recognition training built into them. When solving problems like debugging, refactoring or data preparation, consider arranging information in a way that takes advantage of this. When it's in the right shape, irregularities or patterns will often just jump at you.

- Relatedly, your eyes are also extremely well-adapted to detecting movement and optical flow. Do these two images/texts/logs/terminal outputs/etc. differ? Do they differ if you ignore the hue/time stamps/pwd? Alt-tab back and forth between them and you will notice. (Beware of fancy effects or menus covering it though - it has to be an instant switch from one to the other).
- Become fluent in regular expressions (recommendation: https://regexcrossword.com/).

analog312 replies#
Oddly enough I can't use IDE's. They simply throw way too much information on the screen, and my brain gets overloaded. So I have to sheepishly confess that I do my programming in IDLE. There, I said it.

But I think a take-home lesson is that the "right" visual environment is a function of your eyes and your brain, and might not necessarily be the most sophisticated environment.

fish451 reply#
just wondering, why idle instead of vscode with minimal extensions, or sublime text maybe?
analog31#
Excellent question. Actually my cube mate uses vscode and is happy with it, and the latest incarnations of WinPython come with vscode built in. So maybe I owe it to myself.

For now, my "IDE" is Idle on one side and Stackoverflow on the other. ;-)

mekster#
> They simply throw way too much information on the screen

You can usually just hide them. I hide everything but the file explorer, the code itself and recently I turned on line numbers but no tool bar or task bar or that distracting mini map which I feel it serves no purpose than being cool for some people.

kanyethegreat1 reply#
I spent a short time trying to find a pretty diff tool, but couldn't really find one to my liking. So just ended up using a bash function that did some decorating on the diff output.
mekster#
Which OS? For macOS, Kaleidoscope is quite pretty.
kqr#
> - Your eyes are the only broadband connection into the brain, and they have millenia of pattern recognition training built into them.

This is also true of your ears. If you can find a way to convert what's going on into sound, you can very accurately pick up inconsistencies by ear.
(This is why you sometimes want to bring a stethoscope into the machine room.)

georgewsinger4 replies#
Programming in VR Desktop: https://github.com/SimulaVR/Simula (see the README for a link to a video of it in action).

This allows you to (i) distribute your work tasks intuitively across space; (ii) completely zap out all distractions within a VR headset; (iii) completely eliminate the mouse and work 100% on a keyboard (VR Desktop allows you to click and browse with eye gaze).
It takes a bit of practice to learn the keyboard shorcuts (spawning terminals, moving windows, etc with keyboard shortcuts), but once you learn it, it can feel very immersive/productive.

siljon#
This is the reason why I want a VR headset! Currently I'm a student and can't afford, however I will be doing it soon!

Question: Have you removed your screens completely and use VR 100%, or do you still have a screens? (My idea is to replace the screens completely)

mslate#
What VR hardware do you use this with?
Mizza#
I have to admit.. I love this. Can you really _use_ it though? For long periods of work, day after day? Or is it just a gimmick?
blackrock#
I was imagining something like this for fully immersive computer work. Especially for development and research.

It can give you infinite screens.
One better idea, would be to tie in VR with some front cameras, and then overlay your windows and documents at specific spots in your room.
Like have your calendar on the wall. It becomes literally, a wall calendar.
Then a todo list on your desk. Some encyclopedias on your bookshelf. Etc.
This way, your working documents becomes grounded in your actual physical reality. And this gives you memory, of where that document was.
It’s like how my desk may be messy, but to me it’s perfectly organized. I know exactly where that receipt was placed, in that pile of papers in the far corner of the table.
Being able to recognize hand movements is also a plus, as this will make it easier to interact and manipulate your virtual objects.

theturtletalks#
In the same vein, become a faster typer. I've been using this and I can definitely see the difference:

https://www.keybr.com/

Load more comments