Ask HN: What are your favorite developer-efficiency tips?
251–260 of 532 posts
Re: Ask HN: What are your favorite developer-efficiency tips?
#252I consider scripts to be functional documentation, so I write a lot of them, usually shell scripts but Ruby and Python, too. Any task that I might want to perform again, or tasks for someone else, gets a script if possible. All of my repos have a /scripts directory. It can take some work to write and debug but in the end when it's working you know you have correct "documentation". Text and wiki documentation may look…
I've found recently that Makefiles are my best friend for this kind of thing, even if it's just wrapping existing commands with the right arguments and conventions for the project. Being able to do a simple `make build`, instead of remembering all the right command syntax, repositories etc is so much nicer that having to trawl through a README in a couple of months time for how I was using this thing
Re: Ask HN: What are your favorite developer-efficiency tips?
#253Also get comfortable with rebasing. The most foolproof formula I've found is
git rebase -i [--onto ]
Using the two of those together, you can clarify your commits and have code that is actually reviewable rather than stream of consciousness spaghetti commits.Makes reviews more pleasant and looking back through history more useful.
Also learn to use `git log -p` to look through the change history of files. Immensely more useful than `git blame`.
Re: Ask HN: What are your favorite developer-efficiency tips?
#254Earlier quoted context omitted.
I'd love to subthread hear from people if alternate keyboard layouts have made a difference. ?
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 hardwa…
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.
Re: Ask HN: What are your favorite developer-efficiency tips?
#255I keep two diaries, both MS Word documents. In one, I write summaries of what I read about -- papers, blog posts, books, and articles that interest me, along with the google search term, authors, URL, quotable quotes etc. In the other, I put together a free-form running log of projects I am working on, along with feature ideas, benchmark results (and the parameters used to get it),etc. Why MS Word, you ask? I am ordi…
Re: Ask HN: What are your favorite developer-efficiency tips?
#256Earlier quoted context omitted.
The first thing I do for every project is set up a development blog. Hugo + a nice free theme + Gitlab Pages + Netlify CMS. Everything is contained in Gitlab and I can keep the Pages site private and only accessible by members of the repo. It is less of a daily log and more exploring "issues" - basically anything I took time to research and figure out. I'm very adamant about recording details like dates, version numb…
I love this. I have a grouping of pages in Notion for tech notes. But I really like the idea of scoping it to a project. I like that you don't need a local repo. I'll have to experiment with this. Have you automated anything for it? And do you have any patterns you use (eg. organizing the information, etc). Thanks!
Re: Ask HN: What are your favorite developer-efficiency tips?
#257Re: Ask HN: What are your favorite developer-efficiency tips?
#258Total commander. For any OS. Is among the 1st 3rd party programs I install regardless if it's a Win or Android or Lin installation I do.
Re: Ask HN: What are your favorite developer-efficiency tips?
#259The biggest boost in productivity I've had in recent years is switching back to a statically typed language. TypeScript in my case. You can absolutely refactor and change course _so_ much quicker and with virtually no regressions at all. Just the other day we realized a feature I was building didn't handle an important case, and I had to really change the approach. Doing it in a JavaScript would have been dramaticall…
It's very fun to work with and allows for really safe code.
Re: Ask HN: What are your favorite developer-efficiency tips?
#260Have a sharpened pencil and stack of paper handy always. I can't say how many times it's saved me a lot of trouble programming some behavior because I was able to draw a picture of what I wanted it to do.