Tuomo Kankaanpää
2y ago
Senior Software Engineer | I help web developers to learn Next.js | 10+ years industry experience

I have been working with Javascript for 15 years.
And in that time, I've gotten to build a lot of cool things:
Real-time chat applications
Mobile applications
APIs
Automation tools to save time
There isn't much I would change about my journey.
But if I could go back, here are a few of the mistakes I made early on—and what I would have done differently:
1. Learn The Fundamentals
There are tons of Javascript frameworks out there (React, Next.js, Astro, etc.).
You should use frameworks when you are building applications, but if you aren't comfortable with Javascript fundamentals early on, you'll run into trouble down the road.
Don't make the mistake of skipping learning the fundamentals.
2. Use Functions
Early on I used to write all my Javascript into a one file, with zero functions.
This is not good.
Use functions to divide your code into smaller, more understandable and manageable parts that do exactly one thing.
This helps you and others to understand the flow of code better and makes it more maintainable.
3. Update Your Dependencies
Javascript applications are notorious of having tons of dependencies.
Updating these dependencies requires work and planning.
Doing so though is important for couple of reasons:
Security improvements
Latest features
Bug fixes
Performance enhancements
Don't make the mistake of never or rarely updating your dependencies. The security patches alone are a huge reason to periodically make sure that your app dependencies are up to date.