Docsity

Client-Side vs. Server-Side Scripting in Website Design and Development, Summaries of Computer science

Toggle sidebar
bg1
WEBSITE DESIGN AND DEVELOPMENT
Activity 10
Explain the difference between client side scripting and server
side scripting
Client-side scripting
Client-side scripting typically attaches to the concerned browser in any language that browser
supports. JavaScript is the most commonly used language for client-side scripting. It is the most
commonly used language in this country, and it is compatible with all browsers. As a result, it
can run on any of them. In this manner, the browser (temporarily) downloads the code and
begins processing it without relying on the server.
If you need more information, you can make a request and have it sent directly to the server.
Client-side scripting was previously used for data validation, formatting, and page navigation.
Today's scripting is rapidly evolving and expanding on a daily basis. As a result, performing
client-side scripting is now easier and faster, leaving very little work for the servers.
A client-side script is a program that runs in the client browser. These scripts are short programs
that are downloaded, compiled, and executed by the browser. JavaScript is a popular client-side
programming language used in dynamic websites. The script can be integrated in the HTML or
saved in a separate file.
When a client requests external scripts, the server sends them to the client. Scripts can also be
executed as a result of a user action, such as clicking a page button. Client-side scripts are
pf3
pf4

Partial preview of the text

Download Client-Side vs. Server-Side Scripting in Website Design and Development and more Summaries Computer science in PDF only on Docsity!

Activity 10

Explain the difference between client side scripting and server

side scripting

Client-side scripting Client-side scripting typically attaches to the concerned browser in any language that browser supports. JavaScript is the most commonly used language for client-side scripting. It is the most commonly used language in this country, and it is compatible with all browsers. As a result, it can run on any of them. In this manner, the browser (temporarily) downloads the code and begins processing it without relying on the server. If you need more information, you can make a request and have it sent directly to the server. Client-side scripting was previously used for data validation, formatting, and page navigation. Today's scripting is rapidly evolving and expanding on a daily basis. As a result, performing client-side scripting is now easier and faster, leaving very little work for the servers. A client-side script is a program that runs in the client browser. These scripts are short programs that are downloaded, compiled, and executed by the browser. JavaScript is a popular client-side programming language used in dynamic websites. The script can be integrated in the HTML or saved in a separate file. When a client requests external scripts, the server sends them to the client. Scripts can also be executed as a result of a user action, such as clicking a page button. Client-side scripts are

frequently examined if the user decides to inspect the page's source code. JavaScript code is frequently copied and reused. Server-side scripting This form of scripting is typically seen on the back end of a website. Any random user will not be able to see what happens over here. It means that server-side scripting connects a website to its database, as well as all of its behind-the-scenes duties that contribute to the website's organization and operation. Server-side scripting allows you to tailor responses solely to the needs of the user. When a user requests information, the web server executes a server-side script. These scripts can be executed before a web page is loaded. They are required for any application that requires dynamic data, such as maintaining user login information. PHP, Python, Ruby, and Java are examples of popular server-side languages. These execute like programming languages on the server. When a server-side script is executed, the request is routed to the server, and the result is returned to the client. This is important for websites that keep massive amounts of data, such as search engines or social networks, because downloading all of the data would be extremely slow for the client browser.

Bad impacts  Limitations: Everything from coding approaches to database designs and everything in between is constrained in some way. A nice approach around this is to look at how the framework is utilized by other developers in the community.  Performance: It is a factor, although it did not exist previously and is no longer relevant today. The program is loaded using JavaScript, and it is built with the help of a framework. While you might not notice the impact of loading a 75kb compressed- framework.js file on your PC (with high speeds), mobile users will.  Learning bias: If you study how to use a framework from a programming language, it may be different. Because many of the repetitious chores have been built in bespoke functions. Why will you learn things that you may not have learned in language lessons?  Steep learning curve: Most frameworks can be tough to understand and even more difficult to master. Even with expertise, you would say that it will take at least 3-6 months to get competent in utilizing any framework.  Cost: As a result, hiring dependable framework developers may be more expensive than hiring reliable CMS developers. In my experience, the average framework-built project is more expensive than a similar CMS-built project.