Lurker News
I 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

Earlier comments
antoineMoPa#
Since you are using node, a good first step is to setup ESLint. It will help you stick to a standard and probably teach you new things. That's how I learned about const, let and arrow functions (I think I was using airbnb standards at that time). Otherwise, it will improve the overall consistency of your code.
rifung1 reply#
Personally I actually think you will gain a better understanding because you have nobody to teach you.

If you work with people who are already experts, they will always prevent you from making mistakes. Being able to actually make those mistakes gives you a much better understanding of why people do things though.

tracker1#
I wouldn't say that... I'll often put in "for next time, look at..." type advice in Pull Requests from more junior coworkers. Sometimes working is more important than ideal.

It's when a Junior-Mid dev has to add a feature that's made difficult by their own choices and then rethink to make things better they tend to learn. That said, plenty of Jr-Mid devs don't advance with more practice, they stay jr-mid.

hombre_fatal#
It's a real challenge. You really just need someone to tell you "no, do this, don't do that." A lot of things are just wrong in subtle ways or invisible until you hit a certain scale, so you have no idea.

For example, I built my first production application taking a database connection from the pool in middleware and then returning it to the pool at the end of the response. My much more experienced friend looked at my code and told me that connection pools are made for taking out connections and returning them to the pool as soon as you were finished with them. And that I should use timestamptz instead of timestamp. And so much more.
It makes me cringe to think how long I would've gone without figuring out these things had it not been for someone to set me straight early on.

anigbrowl#
Fail a lot and cry yourself to sleep until you get pretty good at it. Thanks for coming to my TED talk.

Load more comments