KEEP NOTES. Write everything down. Write down what you were thinking about, how you felt about decisions, things you tried for bug fixes. you never know when this stuff will be useful to you again. I keep really basic markdown notes in a git repo, roughly one file per day with an ISO date name, but some things I give a separate file name (still with the iso date, but with some descriptive words) for things that might…
Ask HN: What are your favorite developer-efficiency tips?
521–530 of 532 posts
Re: Ask HN: What are your favorite developer-efficiency tips?
#522Loved reading all of the comments here. The biggest efficiency tip I've found it blocking all distracting websites via /etc/hosts when my computer wakes. Website blockers never worked perfectly for me because of edge cases. Ex: YouTube is distracting, but sometimes I want to watch a YT video, so I would disable the blocker and then forget to enable it again. The /etc/hosts based approach with a wake script to re-add…
It doesn't really block websites, it just pops up in the middle of the screen warning you about how much time you've spent on that particular distracting page today. But you can mark a checkbox telling it that you will be using the site productively (watching a lecture at YouTube, for instance) and assign a period of time for it.
I've tried a lot of websites blockers that didn't stick but I'm really digging the approach of this one.
Re: Ask HN: What are your favorite developer-efficiency tips?
#523(Really, use any fully extensible editor and take the time to learn it well. I'm told Vim fits the bill too; my personal experience just happens to be with Emacs.)
Re: Ask HN: What are your favorite developer-efficiency tips?
#524KEEP NOTES. Write everything down. Write down what you were thinking about, how you felt about decisions, things you tried for bug fixes. you never know when this stuff will be useful to you again. I keep really basic markdown notes in a git repo, roughly one file per day with an ISO date name, but some things I give a separate file name (still with the iso date, but with some descriptive words) for things that might…
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…
Re: Ask HN: What are your favorite developer-efficiency tips?
#525Earlier quoted context omitted.
Not in the source code itself, it will be in separate files according to Matt. If you want it in the source code you can use Sorbet today.
Sorbet syntax is like a hack bolted on... I'm not really a fan of it.
Re: Ask HN: What are your favorite developer-efficiency tips?
#526Re: Ask HN: What are your favorite developer-efficiency tips?
#527Test driven development for my embedded systems work. I’ll never go back.
I got some code going on using pytest and pyserial exactly for this. Tell us more!
Unit testing was traditionally considered impractical for embedded systems, because the code is so closely tied to the hardware. However, with proper architecture and unit test frameworks that simplify your life, it's quite feasible, and indeed enjoyable.
You write unit tests that exercise your embedded code, compiled for the PC, not the target. This ensures your code is portable.
I use the Unity/CMock/Ceedling framework when I'm writing in C, and CppUTest when I'm writing in C++.
I HIGHLY recommend the video courses taught by the guys at ThrowTheSwitch.org (the authors of Unity/CMock/Ceedling). See https://www.throwtheswitch.org/dr-surlys-school
I read and enjoyed James Grenning's book, Test Driven Development for Embedded C, but it didn't really click for me until I took the video courses mentioned above. In the second course, you code an entire simple but realistic embedded project in TDD fashion.
Re: Ask HN: What are your favorite developer-efficiency tips?
#528I can't say enough good things about a multiple clipboard manager. Not only is it useful to copy/paste multiple items in sequence, but it's a game changer to be able to quickly retrieve a code snippet, or URL, or CLI command you used recently; and/or, to trivially stash one just in case you'll want it later. (Primary downside: using a computer without multiple clipboards feels broken. What do you mean it "forgot" the…
I used to have Glipper installed in Gnome, but it looks like that's been a dead project for the better part of a decade now. Does anyone know a modern equivalent? I did enjoy having a clipboard manager I guess one potential downside is that I use `pass` to manage passwords and I don't terribly want my passwords all stuck in my clipboard history...
Re: Ask HN: What are your favorite developer-efficiency tips?
#529Re: Ask HN: What are your favorite developer-efficiency tips?
#530Write meaningful git commit messages, always. Even in stupid side projects that don't matter. Because then when you're at work, it will be second nature to write good messages, and your colleagues will absolutely appreciate it. I've been following the keywords here: https://github.com/joelparkerhenderson/git_commit_message