Ask HN: What are your favorite developer-efficiency tips?
566 pointsI 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 commentsTell 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.
regex is game-changing and regex101 is a great tool for it.
take notes and save snippets so you can refer back to them.
most underrated stack for productivity is proper diet + exercise + sleep.
I use this method: https://breakpo.blogspot.com/2020/05/simple-system-to-track-...
YYYYMMDD.XXXHHII
This give a full uniqueness for the Error Code number among the team. XXX is a unique number each one of the developers in the team have.
So an error code could be: 20190412.1001643 For programmer number 100, on the 12th of April 2019 at 4:43PM
This allows me to know how old is the code, and who to blame in no time :-)
All comments shown.
Couldn't load more comments. Check your connection and try again.