A couple others have mentioned shell tricks. One of my favorites is using Alt-. (in Bash and Zsh) to insert the last argument of the previous command. Press it multiple times and it will cycle through the last argument of all previous commands. It's great for when you want to, say, `ls thing` and then `vim thing`. Yesterday I went looking for a similar key that would insert a copy of the last argument on the current…
One of my favorite bash tricks is that I have this alias in my bashrc file: function goto { cd -P ~/.links/"$1"; } And then in the `.links` folder I have symbolic links to directories I need to go to often. Then getting to a frequently used directory is just a `goto X` away.
Ask HN: What are your favorite developer-efficiency tips?
271–280 of 532 posts
Re: Ask HN: What are your favorite developer-efficiency tips?
#272Test driven development for my embedded systems work. I’ll never go back.
Tell us more!
Re: Ask HN: What are your favorite developer-efficiency tips?
#273Earlier quoted context omitted.
> The investment you have to make to really grok static typing is quite large. It took about 2 years for me to be really comfortable in TS. That sounds a bit exaggerated from my experience. If anyone interested in TS got discouraged reading your comment, it took between like 2 days and 2 weeks for my team to be really comfortable in TS. If you already know JavaScript and if you already have some experience with stati…
Maybe my choice of the word "comfortable" was incorrect (although I would say "grok" was a spot on word choice in this context). It took me a good while to get the point where no matter what I encounter in TS, I feel pretty confident I can arrive at understanding it. The type system is very powerful and there are some deep rabbit holes you can find yourself in. For example, if you can follow this blog post after only…
And there is a useful library linked at the end: https://github.com/pirix-gh/ts-toolbelt.
Re: Ask HN: What are your favorite developer-efficiency tips?
#274Use procrastination against itself. So basically, when procrastinating, we tend to justify our inactions: just 1 more minute on Twitter, just one last scroll on my newfeed, lemme just check this subreddit really quick. With reverse procrastination, you trick your brain into doing your intended task: Ok lemme just open Visual Studio Code and edit this one file then im good, I'll just change this one line of code, I'll…
Re: Ask HN: What are your favorite developer-efficiency tips?
#275I just started at Stripe last year, and I found myself perform many mechanical tasks like: * Converting seconds-from-epoch to a human readable date * Select an id and pull info about it At first, I tried to perform these mechanical tasks with some crazy shortcuts. But remembering shortcuts for every little flow is heavy. Eventually, I've built a programmable tooltip on Mac OS X for these mechanical tasks. I'd love fo…
Thank you for this!
Re: Ask HN: What are your favorite developer-efficiency tips?
#276Here's a video by myself showing the JavaScript tools: https://youtu.be/MpFImvZrbDY
Re: Ask HN: What are your favorite developer-efficiency tips?
#277Re: Ask HN: What are your favorite developer-efficiency tips?
#278Reading non-fictional books can be a waste of time. IE: I've read over 40 non-fiction books in 365 because I enjoy them. This approach is not time effective because you can usually put the wisdom and knowledge of one book in 1 paragraph
Know your context and know if those advice apply to you
Re: Ask HN: What are your favorite developer-efficiency tips?
#279This 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.
Re: Ask HN: What are your favorite developer-efficiency tips?
#280I just started at Stripe last year, and I found myself perform many mechanical tasks like: * Converting seconds-from-epoch to a human readable date * Select an id and pull info about it At first, I tried to perform these mechanical tasks with some crazy shortcuts. But remembering shortcuts for every little flow is heavy. Eventually, I've built a programmable tooltip on Mac OS X for these mechanical tasks. I'd love fo…
This is really cool. I had a similar idea a couple of years ago to implement something similar to this using the three finger single tap command on the trackpad that currently brings up dictionary/siri knowledge/wikipedia etc. I see you have 4-finger tap implemented with an additional app which is really cool and probably better than the 3-finger native OS way since you can highlight/copy as well as build your own me…
Please leave a comment on this issue: https://github.com/tanin47/tip/issues/28
I'll notify you when the app is released to private beta.
Current progress: I'm building the setting UI for configuring mouse button and trackpad.