D DJ Sanderson's profile

Intro to Backend Web Developement

Request-Respond-Cycle
When I go to a URL,  I hit enter, the first thing that happens is we need to find
the IP address for that domain and then we send an HTTP request asking for a particular page to that IP address and then the server receives that request.
It figures out what to do,  what to respond with.
And then it responds back with HTML, CSS & javascript.
.
 the difference between static and dynamic web pages

We talked about this also in one of the early videos about how the Internet works.
I want to do a quick recap because it's important to the back end discussion that we're about to have
.
So there are two different types of Web sites static pages and dynamic pages dynamic web pages are sites
that are compiled on the server side where the server is pulling together or constructing a web page
before it's sent back as a response.
Everything we've written so far has been static.
So even something like this that it doesn't seem like it's static because there's dynamic content.
We get random colors every time and it's a game.
It doesn't seem as static as the restaurant Web page example that I used on the earlier video on this
topic but it still is static because it's the same HMO C Ss in javascript.
Every single time.
Yes it looks different because we have some random colors but it's the same fundamental pieces every
time that we're opening in the browser on a dynamic web site.
We could have different javascript or different C Ss different each team that's being sent back every
time.
So when we go to something like Reddit for instance and I refresh the page I can get different content
here.
And in fact I do every single time you're fresh the page you get new content and so there's a database
that's compiling things.
There's some codes checking if you're logged in and if you are logged in then it won't show you a form
over here but it will show you a log out button.
And if you're not logged in it shows you a form and it shows you log in or sign up buttons.
So this web page is not the exact same H G M L C Ss in javascript that sent back to me every time the
server is actually deciding what to send back.
In constructing a web page before it sends it to me versus this site it's the same exact content every
single time.
OK so let's focus a little bit more on the back end now.
So this diagram is of a generic stack and stack is a term that's used to refer to all of the technologies
that a particular web application uses.
So H.T. Melchior says in javascript are always are almost always part of a stack nowadays on big fancy
web apps.
Technically we could have a Web site that doesn't have any success.


Intro to Backend Web Developement
Published:

Intro to Backend Web Developement

Published: