Server Side vs Client Side languages
Server Side vs Client Side languages are terms used in website development languages, according to execution website development languages are divided into two categories, these are server side and client side languages.
Servier side Languages
Those languages which is executed on server and converted to HTML, these languages are also called as Back-end Languages. Most common server side languages are
Client side Languages
Those languages which are executed at client side (browser) are called Client Side Languages or Front-end Languages, Most common Client side languages are
- VB Script
In Server Side and Client Side terminology web development Languages are categorized on the basis of its execution place, either a language is/will execute on server or User/Visitor Browser.
Why We Need Both Server and Client Side Languages
Both plays important role on its places, Client side languages are used for Static Data, Visual Design, Styling, Animations, Validations etc. as these tasks are done on browser so they are faster.
If we somehow do some of these tasks by client side languages like we do validation by server side it will not be as faster as Client Side Languages do.
Where as Server Side Languages are used to Connect to database, fetch data from database, save or change data in database, our business logic. As database holds data of all users and we do not want a user to see data of another user, and we do not want users to see and understand our business logic. That’s why we write this portion of website in some Server Side Language.
we can also connect to database via Client Side Languages but in that case users will be able to see our database connectivity and they can alter our queries. that will be great blunder.