Ask HN: How to learn best practices when you have no one to teach you?
440 pointsI am currently working for a startup and am one of 3 developers. Most of my work revolves around building the API in Node + Express as well as some small projects with MongoDB. The other developers don't really assist me since they have their own projects to work on, and, honestly, they have less experience and knowledge than I do.
So my question is: What is the best way for me to go about learning best practices in API development, or using MongoDB, or even just being a better software developer in general?
Comments (197) 98 threads
Show all comments
Showing thread 16 of 98
1) learn (read guides, books, code)
eg: find something close to what you're doing at one of the books at: http://aosabook.org/en/index.html
Read about nginx if you're working with web servers - even if your server is in node. Read about postgresql or mysql if you work with data. Etc.
2) implement
Try things out. Do a module in ttd (red/green/refactor). Pack a sub system up as a node module, distribute it on npm.
3) automate
If you have any tests - set up CI. See that all your commits "pass" (ok, because you only have that one test - but now it's easy to add more).
Once CI is working, you can set up automatic lining.
4) repeat/improve
In general, try to find the smallest step from where you are, towards where you want to get to. Avoid leaps. Change one thing at a time (eg, you've used mongodb+node+express+react: try using typescript or change out react for vue. Or look at using postgres over mongodb etc.
I'd also try to encourage some kind of internal sharing. Maybe tech lunch Friday - where you can each give a lightning talk on some small nice thing you've found/used recently.
Try to "budget" for improving. Make it work, then spend an hour or two making it (more) beautiful.