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
tonymet#
step through debugger
growlist10 replies#
Learn to touch-type properly. I'm not a shit hot typist or anything, but it does make hours on a keyboard more pleasant. And (hate me) I do judge other devs on it. If someone can't be bothered to invest a few tens of hours on such a key productivity enhancement then what does that say?
5cott01 reply#
Same. Learn to type ~100 words/minute, I was surprised by how much more productive it has made me. Using a touch type trainer for a minute or two can also be a little mental break from writing software for hours.
xupybd3 replies#
I can touch type but can't get much faster than 60-70 WPM. I've been practicing for years. Any tips for speed?
shrimp_emoji1 reply#
Been on a compy since I was a toddler.

100 wpm when no-look-pecking, 60 wpm when no-look touch typing.
Feels weird man. xD
Also, I have a friend who used to be a court typist. Does zero coding. Borders on comically-computer-illiterate. Types like 170 wpm. So jealous. Such a gift, so wasted.

Continue this thread — 1 reply

war1025#
There is a difference I think between typing speed when you are transcribing vs writing your own text.

I find that I get pretty slow speeds when doing typing tests, but most of the time it's because I need to stop every word to figure out what the heck it is wanting me to type.
When typing out my own stuff, I don't have that break because I already know what I want to say.

5cott0#
> Any tips for speed?

If you don't already have one get a good ergonomic keyboard. I recently switched to an ergodox ortholinear layout and it immediately exposed my bad typing habits. The split hand layout saves my neck and shoulders and my working posture has noticeably improved. Took about a month to get back to 80 wpm and don't feel like I've plateaued yet trying to get to 125 wpm.
I had a Judo coach who used to scream "Practice doesn't make perfect. Perfect practice makes perfect." In practice sessions focus on not making any mistakes & using only the correct fingers to strike keys. It can be hard to resist the temptation to start hammering as fast as you can in practice but slowing down once in a while can greatly improve muscle memory.
I use https://www.keybr.com/ to track stats, practice limited or different key sets, it also supports non qwerty layouts for stretching your comfort zone. For touch typing practice it displays a real-time keylogger map so you can auto-correct your finger positioning without looking at the keyboard, if you've got a fancy keyboard (Shout out Arts and Crafts HN) you can hook up the firmware to do the same.

jasonpeacock1 reply#
I've using this site for improving my touch-typing:

https://www.keybr.com/
Slow is smooth, smooth is fast.

bhelkey1 reply#
I am unimpressed with this site. It seems to use a large number of made up words (risittle, ...). The words it chooses can even be one letter off of a common word (itsell -> itself).
jasonpeacock#
It literally says that it uses random words, and explains why, in the website description:

> Instead, Keybr.com generates random, but readable and pronounceable words using the phonetic rules of your native language. These words look almost natural, and often they really are. Typing sensible text is much easier than repeating random letters, and it helps you to remember frequent key combinations. The latest point is very important.

mattgibson#
I think this is often undervalued. It's not necessarily the typing speed, but the far larger slowdown caused by distractions like error correction, using the mouse, getting irritated and taking a break etc. Meauring words per minute in typing static text doesn't really show that up.

Also, it's something that's hard to appreciate the value of until you experience just how big a different it can make.
Strong typing skills also form a good foundation for learning Vim and other editor/stystem wide shortcuts, which can make the whole experience of interfacing with the computer an order of magnitude more efficient and enjoyable.
Fewer distractions means more uninterrupted thinkning time and better code.

xeroalt5 replies#
What's the value add of touch typing? I tried it for a bit, but it seemed like a waste. I can consistently do ~90-100 WPM on https://www.livechat.com/typing-speed-test/#/ with very few mistakes just typing with 3 fingers on my left hand and 2 on my right. Feels like input speed is one of the least important parts of coding.

Did one test for this comment. https://imgur.com/a/GISaU6n

Noumenon72#
I was hoping your image would be a video of you showing that you're actually two coffee-crazed squirrels.

You must know that average touch typing speed is 40 wpm, professional is 75 wpm, therefore you have nothing to gain by optimizing further. Especially since bragging about doing it the hard way lets you seem like you'd be even faster if you tried.

ryall#
For a start you don’t have to look at the keyboard so you can spot typos as they happen and take advantage intellisense etc. Although at 90 wpm you’re probably not looking at the keyboard either.

For me the main reason I value touch typing so highly is due to the reduction in cognitive load. I think things and they appear on the screen without any conscious thought. I honestly couldn’t tell you what fingers I’d just used to type the words.

Izkata#
Sounds like you are touch-typing, you just don't use the home-row standard. Neither do I. There's plenty of other ways to do it, they're just not taught classroom-style so people like to discount them.

The benefit of touch-typing is being able to get your thoughts into the computer without interrupting said thoughts to figure out where stuff is on the keyboard. Keeps the flow going.

Joeri#
The biggest benefit in my view is not typing speed but keeping your eyes on what you're typing instead of on the keyboard. You catch more mistakes that way. If you're already keeping your eyes on the screen, you've got most of the value already.
davidbanham#
Good technique helps prevent injury. Rheumatoid arthritis and carpal tunnel are no fun. Adding “it’s going to hurt” to the list of reasons not to sit down and knock out that feature really isn’t helpful to your productivity.

I ended up tracing my pain to lazy technique in my right hand. Sorted that out and I’ve been pain free for years. It was _no fun _ before I figured it out.

grayclhn#
Since public schools closed, I've had my 3 kids (11, 8, and 8) practice typing 30 minutes every day. Easily one of my best parenting decisions ever. :)
maerF0x05 replies#
I'd love to subthread hear from people if alternate keyboard layouts have made a difference. ?
ken2 replies#
I've used Dvorak for the past few decades. As suggested by one of the other comments, it took about 2 weeks to learn well enough to get back to my normal speed (>80wpm).

It makes a massive difference in comfort. 5 minutes typing at full speed on QWERTY and my wrists start to hurt. (I really don't know how people do it.) On Dvorak, I can type all day at full speed with no pain at all. Surprisingly, the keyboard hardware itself doesn't seem to matter.
(Details: I mostly use a Mac, with caps lock mapped to control, NSRepeatCountBinding set to ^u, and -- obviously? -- I rarely touch the arrow keys.)

Izkata2 replies#
> 5 minutes typing at full speed on QWERTY and my wrists start to hurt. (I really don't know how people do it.)

Wrist-bending to maintain the home row, I suspect. I have a different, self-taught style that partially involves holding my hands above the keyboard and using muscles all along my arms to move my hands without bending my wrists much - never had any problems.

Continue this thread — 2 replies

hydroxonium#
Same here. Dvorak is so much more ergonomic than QWERTY.

Wrist discomfort with QWERTY completely disappeared upon switching to Dvorak.

motor_wolf#
I use Dvorak exclusively and echo the other comment -- I'm not sure that it has made a dramatic difference in my speed, but it is much more comfortable! Your hands sit neatly on the home row, and do not have to reach much. The only downside is that I use vim and after many years of Nethack am pretty good at hjkl movement, and I can't even take advantage! :( Definitely something to consider though if you want to switch and are a vim user.
RBerenguel1 reply#
Moved to Colemak and learnt touch typing on it directly (to take advantage of the mental break). Really improved my "writing feeling", solved some nagging RSI issues and in general helped in "well-being". I don't type particularly fast, but I type way smoother, which is what feels good. I can't recommend Colemak enough, although I have never convinced anyone (in around 3 years).
lgunsch1 reply#
Greetings to a fellow Colemak user. I've used Colemak for about 7~8 years now. It's really interesting to see home row keys polished to a shine, while others aren't.

I do always change one thing, and recommend it for others too, is to change caps-lock into a control.

Continue this thread — 1 reply

davidbanham#
I use QWERTY but on an ergodox. Massively improved my experience at my usual workstation and it’s still seamless to jump on a normal keyboard if I’m using my laptop or someone else’s machine.

Continue this thread — 1 more reply

Continue this thread — 4 more replies

ttty1 reply#
Node.js: you can share code between client and server side.

Typescript: you don't need to remember the arguments of a function or return types. Easy to refactor. Just no brainier. I also use it for all my config like webpack config with ts-node or ts-node-dev for auto reload.
Auto format all your code with 1 command. Prettier or lint fix. But that's basic.
Don't ever write global css. Use emotionjs or styled components. Scoped css it's a delight.
If you notice all my tips helps you to reuse the code you write. Therefore write less code, more efficient.
Plan all your stories ahead. Then do one at the time. Then mark it done. Prioritize.

yakshaving_jgt#
> If you notice all my tips helps you to reuse the code you write.

> Don't ever write global css.
Global CSS is a form of code reuse.

meritt2 replies#
Avoid being an early adopter of new technology despite everyone on HN raving about it. Instead focus on solving actual business needs that grow revenue or profit margins.
no_wizard#
This might be a little underrated by the average developer just how important this is.

That isn't to say, write code fast, even if its garbage. Good clean code is still a virtue. I feel like sometimes people conflate the two. So to add on, don't do that!

mekster#
Actually jumping to TypeScript at v1.x made me fluent with it and I now do projects with it.

With that said, I don't usually invest time on new stuff unless it looks absolutely convincing.

Load more comments