You’re in the Adult Phase if you know enough JavaScript to be dangerous. You know you can build anything you want and you’re confident of your skills.
You’re ready to leave the nest and learn other things that will bring you closer to your goal.
You have six options here:
- Write better code
- Learn a framework
- Understand build tools
- Learn to write servers
- Test your software
- Build apps
Writing better code
Code quality is subjective, but there are signposts that differentiate good quality vs bad quality code.
We can split these signposts into two categories:
- Basic Signposts
- Advanced Signposts
Basic Signposts
Most of these have been built into linters and prettifiers, so you should already have them set up in your text editor.
On the basic level, you should be writing code with tried-and-tested practices that the entire industry recommends. These would include stuff like:
- Using strict equality (
===) over loose equality (==) - Reducing side effects
- Preventing Mutation
- Writing Pure functions
- … and so on
I teach most of these basic signposts (for JavaScript) in Chapter 9 of Learn JavaScript.
Advanced Signposts
Advanced signposts are programming patterns that individuals develop over years of writing, refactoring, and improving their code.
So much so that, if you read code written by that person, you’ll find that the code naturally makes sense.
Unfortunately, advanced signposts cannot be found on Google because they’re difficult to explain. One trick to learn them is to read other people’s code and improve your code design systems once in a while.
You will probably not be able to reach this stage at this point in your development. But don’t worry. You’ll get here eventually.
Learn a Framework
Frameworks like React, Vue, Svelte, Angular, and Astro have been popular with developers for a reason — they make code easier to write.
These frameworks allow you to build components as standalone files that can be easily reused. Nowadays, you can also learn Web Components that do similar things.
You can choose any framework you like here — there are no wrong answers. You can always switch later.
The most popular frameworks (in order of popularity) these days are:
- React
- Vue
- Svelte
I tried all three of them and I like Svelte. It feels closest to native JavaScript and is quite clean. (That’s an advanced signpost).
My personal recommendation, if you’re choosing frameworks today, is to use Astro combined with Svelte.
I show you how to use Astro (and a little bit of Svelte) in a Workshop called Build and Deploy — you can view the first session for free.
Understand build tools
The developer toolchain has evolved tremendously over the years.
In the old days, we had to configure everything ourselves — including writing scripts to convert Sass to CSS, bundling JavaScript, and all the nonsense. (I wrote a book on Gulp that does that if you wish to check it out).
Thankfully, you don’t have to worry much today. Most frameworks come with tools that make your life as a developer easier — and most of these tools have sane defaults, so you don’t have to configure much.
I would recommend skipping toolchains for now. Learn other things first. Come back and figure out a better toolchain if you feel frustrated about your tools.
Learn to use servers
Servers are essential if you want to build apps. This is a complex topic that warrants a full course.
To break it down in a simple manner, servers have the following components:
- Programming Language and Frameworks
- Databases
- Hosting
Server languages and frameworks
Python, Ruby, PHP, Go, and Rust, are all languages that can be used on a server.
Instead of choosing these, I recommend going with Node because Node is backend JavaScript. You can use your JavaScript knowledge without having to learn a new language.
I have two recommendations here:
- Use a framework like Astro that handles both frontend and backend for you
- Or use Express if you’re just doing backend work
I gave a workshop series on Node, Express, and Mongoose (my preferred way of building servers right now). This will help you get up to speed with a great server setup quickly.
Test your software
Testing is part and parcel of building robust web applications.
You need to learn to test sooner or later in your development career. If you just reached the Adult Phase, I would say you’re too young for testing right now. Go figure something else out instead.
You’ll feel a natural pull towards needing to test your software in the future — that is when you learn to test software.
My Node Workshop includes software testing so it will give you a good boost when you’re ready.
Build Apps
Most developers begin the journey by wanting to build applications — myself included.
But if you just stepped into the Adult Phase, it may be too early for you. That’s because real applications often require you to know how to handle servers to begin with.
So I recommend you learn that first.
Once you’re done, you can build apps anytime.
So many options, how to choose?
If you just stepped into the Adult Phase, here’s what I would recommend:
- Learn a framework
- Learn servers
Then do whatever you want.
Personally, I’ll build apps at this point and learn to test as I go along.
Welcome! Unfortunately, you don’t have access to this lesson. To get access, please purchase the course or enroll in Magical Dev School.
Unlock this lesson