How to Become a Frontend Developer in 2022 (Full Roadmap)

We Science Too
67 followers
13 Video Views·Oct 22, 2022
How do I become a front-end developer? If you follow this front-end developer roadmap,
you'll be on an amazing journey to becoming a front-end developer.
But first, what is a front-end developer?
A front-end developer is responsible for creating the experience that users interact with
on the web. So this could be web apps, websites, or other interesting experiences.
What I love about front-end development is that rapid feedback loop.
If you think something is broken, well, you can see for yourself.
This roadmap is the path that I took on my front-end developer journey,
but I took some inspiration from roadmap.sh. So check out the link in the description for that.
Anyway, let's get cracking.
HTML and CSS are the absolute basics when it comes to learning the web.
When you go in your browser and search up a website like lewismentalaws.com,
awesome web, wait, I did this joke last time.
The server will respond with HTML, CSS,
and JavaScript that your browser will run and make it look pretty.
Or not pretty.
HTML is what structures your entire web page.
Think of it like the skeleton of a website.
Imagine how a Word document in Times New Roman looks.
It's similar if you just have HTML only.
It's important to understand that every single web page uses HTML.
If you right-click on any website and click inspect elements, you can see the HTML.
CSS, however, is there to pretty everything up.
With CSS, you can position elements and give your web page some jazz.
Something that is very important is understanding how to create layouts.
Nowadays, you can access the web on a 12K display or a Nintendo DS.
So it's important to build your layout so that you can be responsive on all devices.
CSS grid makes us so good.
I love you, CSS grid.
You'll see lots of people online tell you to use a framework,
which you should at a later point, but don't listen to them.
Just stick with HTML and CSS and then move on to the next part.
After HTML and CSS, you'll want to invest a lot of time into JavaScript.
And I mean a lot.
JavaScript is one of the most popular languages in the world right now and for good reason.
As the web is continuing to grow and grow,
so are the need for web developers using JavaScript.
Modern JavaScript is an amazing skill to have and is pretty complex.
If this is your first programming language,
then you'll be introduced to concepts like data structures,
conditionals, variables, and much more.
So if you're an absolute beginner when it comes to programming,
I highly recommend you read Eloquent JavaScript.
It's free to read online or you can buy a version and support the author.
It gives a really detailed explanation about programming in general.
I think you would really like it.
As a front-end developer,
JavaScript will help you programmatically change the user interface as well as fetch data.
Because of the fetch API,
most websites won't even require you to reload the page in order to grab data.
Using fetch will allow you to talk to servers and handle what those servers give to you.
If you're interested in learning back-end development,
I have a whole video on that.
Check it out if you want.
JavaScript is a long journey, but once you get the hang of it, move on.
Never reinvent the wheel.
This is where package managers come in.
A package manager manages your packages.
Well, of course.
Your project will depend on other packages,
but those packages will depend on other packages and those will depend on...
You can see how this is getting crazy.
NPM or Yarn will deal with this for you,
so you don't have to pull your hair in dependency hell.
With packages, you can develop your application super fast,
so you don't have to reinvent the wheel.
This is also where you can start using build tools.
Build tools like Webpack, Parcel, or recently Byte
will provide you with extreme productivity boosts.
Build tools make it so you can run a local web server,
compile your CSS or JavaScript files,
and create an extremely optimized build of your project in seconds.
Well, sometimes seconds.
This is an essential tool in your tool bag.
Tool bag, is that the right way to say it?
Now, I don't know about you, but writing CSS is a little annoying.
Luckily for us, there are ways that we can make our CSS way more fun to write.
Sass and Stylus are two options you can use to radically change the way you write CSS.
Sass takes all of the annoying parts with writing CSS and improves heavily on its syntax.
Issue is, the browser can't read Sass, so you have to compile it to CSS.
If you go back in the video, we can use the build tool to do that.
Writing your own CSS will give you an insane amount of flexibility
if you're still looking to write CSS.
However, if you're in a rush,
something like a CSS framework will give you huge productivity boosts.
CSS frameworks like Bulma, Tailwind CSS,
and Bootstrap provide a library of existing components
to help you rapidly develop your application.
It's all open source and curated by developers and designers,
so you have some beautiful looking components that you can use in your app.
Now, this is an area you're going to see a lot of conflicting information.
JavaScript frameworks.
Why do you need one?
Well, you don't.
However, if you want to build your apps faster,
then you kind of need a framework to streamline a lot of that work.
There's so many JavaScript frameworks out there,
but the big three are React, Angular, and Vue.js.
Which one do I recommend?
Well, I love React, but it doesn't really matter which one you choose,
because they're all great.
So maybe roll a dice and choose for yourself.
The scope of your project will easily be achievable with all three frameworks,
but choose one and stick with one.
It's also important to understand state management as well.
As your application becomes more complex,
you will need a place to store the state of all your UI and data layers.
Common ones you'll see is Redux, RxJS, and Vue.x.
Also explore your options when you hit this stage.
If you decide to stick with a framework,
you'll be involved much more in the JavaScript ecosystem.
It's literally a huge ecosystem.
You can't go wrong with either or.
TypeScript is just incredible.
What is TypeScript?
Well, it's JavaScript with types.
Need I say more?
You may have noticed when writing JavaScript,
you run into lots of errors unexpectedly,
especially when it hits production.
With regular JavaScript, it's hard to identify when this will happen,
especially when you're in the stage of writing your code.
TypeScript is a language that replaces JavaScript.
It compiles your TypeScript code into JavaScript,
but makes the development experience much better.
You define types that you expect your code to run into
in order for there to be less issues when you run your code in production.
TypeScript catches these errors for you before you even push your code to production,
which just reduces so many headaches.
This is a must for all JavaScript developers.
Don't skip it.
Now, once you're starting to develop with JavaScript,
you'll start to realize that all of your HTML is being generated on the front end.
But what are the drawbacks to this?
Well, you rely on your client's browser,
which could easily be really fast or really slow,
which can provide issues.
Also, for websites you want to market to the real world,
you'll find that Google has issues scraping your websites.
Not good for SEO.
Server-side rendering is a great alternative to this.
If you're in the React ecosystem, check out Nuxt.js.
For Angular, there's Universal.
For Vue, there's Nuxt.js.
If you know any server-side language or logic, like Node.js with Express,
you'll fit in right here.
Another good option is a static site generator.
A static site generator works a lot like a build tool,
where you write templates, then tell the static site generator
to produce pages out of the content you give it.
Nuxt.js also does this.
Another good example is Jekyll or Hugo.
When I said JavaScript is huge, I mean it's huge.
You can literally do anything with JavaScript nowadays.
An example is building a desktop application.
You can use Electron to connect to native desktop features
and make entire desktop applications.
You can also build native mobile applications with React Native,
Flutter, or NativeScript.
You can also even build intense web applications like Figma
using WebAssembly with Rust.
The possibilities are absolutely endless when it comes to JavaScript.
At this stage, however, you should be pretty comfortable
with everything else that I mentioned.
What do you guys think about my developer roadmap?
Make sure you guys check out my backend developer roadmap.
I put a lot of time and effort into that, and I think you might like it.
What roadmap should I do next?
Make sure you guys check out my Discord channel.
I am talking about tech, YouTube, everything.
See you in my next video.
