Let's understand to the question, why use experts if we have no chance?
All right.
So let's get rocking.
The first point is that experts handle all low level details for us.
Like I said in the previous video, that if we are using core or vanilla Node.js even to pass a simple
data into the server, we need to write a lot of code to get it done, but express take away all these
low level details for us.
And the next point is that it has a huge developer community.
Before you use a framework or library, make sure that it has a large developer community, meaning
that in case you face a back problem, definitely there is someone who has that problem before.
And the way finding solution to that won't be a problem at all.
The next point is that express handle what is called data validation and Node.js server.
You saw that when we are trying to send data into the server, we can send any payload or data into
the server and to handle validation in Node.js only, it's going to be a little bit difficult, but
experts make it pretty easy.
And I will show you as we move on.
The next point is what we call templating.
Well, with Xpress we can use template engine like JS to display dynamic data.
If we are using Node.js, you're going to be a little bit difficult to parse dynamic data into a HTML
template.
So what is template engine?
Well, for this one, we have dedicated video to talk about template engine.
A template engine is a combination of HTML with JavaScript, meaning that we can write JavaScript inside
a HTML and we have a video talking about template engine.
And apart from that, we have what is called routing.
Well, do you remember on that web server in Node.js?
Well, let me show you the code we wrote for Node.js server.
And if you see how we are doing the routing inside Node.js, assuming that inside this particular route
here or endpoint, you could have millions of code or hundreds of code inside this.
So if you are using code on JS, routing is going to be difficult for us.
But with EXPRESS, you're going to take away all this complexity from us to make it really easy for
routing.
The next point is what we call session management, and we have a section for this one to talk about
authentication and authorization, where we talk about session management, talking about cookies and
many more.
And the next point is what you call error handling, which express handling error is pretty easy as
compared to vanilla Node.js.
So with this one in mind, the next video, let's have a look at the map of Learning Express JS.