CodeNewbie Community

loading...

What is the difference between client-side and server-side programming?

Adam
Lover of mountains and code.
・1 min read

Hey y'all! I hope your week is going great!

I'm starting my dev journey and loving it so far! One question I had for you all was: what is the difference between client-side and server-side programming?

Can any good samaritan help me out?

Many thanks in advance!

Discussion (3)

Collapse
abdulramonjemil profile image
Abdulramon Jemil

Basically. When an HTTP request is made. There's usually a client and a server. Let's for example say you enter Google.com in your browser, your browser is the client because its the one requesting for the webpage that exists at google.com and google.com is hosted on a server (not one though) which accepts requests sent from clients like your browser and then returns the appropriate response.
Any programming stuff that take place in your browser in this case is called client side programming and any programming stuff that takes place on servers like the server that hosts google.com is known as server side programming

Collapse
chukwukagideon profile image
Chukwukagideon

Client side deals with what the users can see (it has to do with the interface, and the over all look of the website or app) for websites - client side programming is mostly done using html5, CSS3, JavaScript.
While server-side is the back-end side of the web, it deals with providing information and data on the website, it also has to do with sending and receiving information from a server, for this you need PHP, MySql, etc.well that's all I know about server-side 🙂

Collapse
andreisfedotov profile image
Andrei Fedotov

The client is that guy who asks and the server is who answers.

According to that, the client can be the server and vice-versa.
I suppose what you're asking about is a frontend part and a backend part of development. If we talk about web development then the frontend might be a site in a browser, and the backend might be some service on the internet from which the frontend obtains the data. In this case, the frontend part is a client, because it asks for the data from the backend service. And the backend service is a server.

But the reality is a bit more complex. It is possible that the server (that the frontend site asks for the data) requests data from different sources and aggregates it before returning to the site back. In this case, this server becomes a client for the services which had been asked for the data.

So just to wrap up, it's more about communication rather than programming itself.