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
barbs1 reply#
In general I think it's good to be in touch with communities centred around your language and framework to get a good idea of how people are solving similar problems to yours. Things change so much over the years and there are multiple ways to solve the same problems that you won't get from just reading official documentation. Once you get a sense of the general playing field you can deep dive into certain topics.

I can't speak for other languages and frameworks but I know with Android Development it's useful to keep an eye on the subreddit (https://www.reddit.com/r/androiddev/) to see what the latest general consensus is with libraries and frameworks. There's also a #android-dev channel on Freenode IRC that I dip into from time to time. Meetups are pretty good too, and people tend to enjoy conferences although personally with my poor attention span I tend to switch off. There's a weekly newsletter as well which I find really useful (https://androidweekly.net/).
No idea what the equivalents would be for Node + Express and MongoDB but I'm sure they exist :).

zamalek#
> No idea what the equivalents would be for Node + Express and MongoDB but I'm sure they exist :).

GitHub, up for grabs issues. If you really want to learn, stick with the more popular proects, as they usually have more experienced developers involved.
The problem with this is that you need to work after-hours, which is not everyone's cup of tea.

rabi_penguin#
I'd like to give a contrasting answer, which is that you should go somewhere where you can be mentored and learn. If you're concerned about your ability to continue learning best practices and level up as an engineer, you should keep in mind that there are many engineering organizations where you'll be able to work directly with engineers much more senior than you who you'll learn a lot from -- in my prior experience, it was this kind of collaboration that I learned the most from. It's true that I learned a lot when I was younger from self-teaching and experience, but there was a certain amount that I'm not sure I could have (or should ever have) picked up on the job in production, because it would have been infinitely more painful and less productive than collaborating with someone who could help guide me in the right direction, as well as whom I could look up to as a mentor and a guide.

If you want that (which is reasonable because it's an excellent almost invaluable resource for your career), you have to first find an organization that provides that. Where you're at may or may not be that place.

tuxxy1 reply#
All of these responses are missing a huge point here:

If you're a solo developer, stick to _standards_. There are standards for how something should be implemented (like REST), there are standards to how things should be written (like PEP8 for Python), etc.
Follow those standards as close as you possibly can. Ultimately, you'll find issues with them -- that's great! Perhaps you'll even find a more clear way of doing something that the standard doesn't suggest. This means you can probably iterate on your original design.
Join a Slack/Discord/IRC with other developers using your toolchain and ask questions there if you have concerns. If you're worried about design decisions, find others who have been in similar boats and ask how they did things and what the result was like.
Typically, best practices are those that emphasize 1) clear code, 2) readable code, and 3) the KISS principle. Anything that favors complexity over simplicity _must_ have a good reason for doing so.

zimablue1 reply#
I massively disagree with this, as the other part said a lot of standards don't make any sense. REST always seemed very suspect to me, and Facebook with some of the best developers in the works basically threw it straight out of the window with graphql, seeming to validate the scepticism. Html also has complicated standards about elements which everyone ignores with divs everywhere. There seem to be a lot of nonsense standards around.
tuxmascot#
The reason you massively disagree with it is the reason why OP should try and do it. Nothing better than learning from the mistakes of others.
haolez#
You have a lot of people to teach you! It's just that they use books and GitHub repos to communicate :)

Emphasis on GitHub repos: you can learn a lot of good practices and efficient solutions in open source projects somewhat related to your problem domain.

Load more comments