CSE 3210: Server-side Scripting 1
Students add to their ability to craft dynamic Web sites by exploring the fundamentals of server-side scripting. In the process, they add to their understanding of Internet scripting by employing databases as a repository for the information to be displayed by their sites. Students learn how to analyze, modify, write and debug algorithms and server-side scripts that use simple databases.
Server-side scripting is the “back-end” server that many websites and servers use to display and return dynamic information. While Client-side scripting involves creating the “front-end” that the user sees, Server-side scripting involves creating “routes” for information and processes, for websites and/or APIs. You can read more about it here. Servers are written in a variety of languages such as Python, C#, Java, and Javascript. Those languages have popular web frameworks you can use such as Express or ASP.NET Core, but you can also write your own server from scratch (e.g. using Python sockets).
Theory
Demonstrate an understanding of the key features of server-side environments and server-side scripting
- Compare and contrast server-side scripting with dynamic client-side scripting including:
- What are the limitations of dynamic client-side scripting such as security and quality of experience issues? What about other issues?
- What are the advantages of server-side scripting? Include descriptions of the following: broader features available, developer control of application environment, greater interactivity, scalability and maintainability. What other advantages are there?
- What are the disadvantages of server-side scripting?
- Describe how client-side and server-side scripting can and should be used to complement one another.
- Describe two Web applications made possible by server-side scripting approaches.
- Describe a server-side language and compare it with one or more client-side languages.
- Describe the system architecture of a typical server-side environment including:
- Describe the three-tiered model of a typical server-side environment. Explain what each layer does and how layers interact with each other.
- Describe the roles Web server software has in a typical server-side environment.
- Describe the capabilities Web server software needs in a typical server-side environment.
- Describe the role played by database and/or other information managers in a typical server-side environment.
- Describe the capabilities needed by database and/or other information managers in a typical server-side environment.
- Describe the role played by the server-side scripting language in a typical server-side environment.
- Represent how a request from a client would be handled in a typical multitiered server-side environment.
Describe the processes and characteristics of a server-side environment
- describe the various tiers that make up an environment including:
- identify the Web server software used in an environment and describe the role(s) it/they will be required to play
- identify the database manager and/or other information managers used in an environment and describe the role(s) it/they will be required to play
- identify the server-side scripting language(s) used in an environment and describe the role(s) it/they will be required to play
- identify and describe at least one significant task or application that a server-side environment could be used to carry out. Explain each step that the server-side environment takes to complete the task / application.
Practical
Use appropriate techniques to design an application for use in a server-side scripting environment.
- Outline the intent of the application and determine if that intent can be advantageously realized through the use of a server-side environment including:
- Determine the data handling requirements of the application, and determine if the application and information tiers of an environment are capable of handling those requirements.
- Determine the input/output requirements of the application, and determine if the client tier of an environment is capable of handling those requirements.
- AKA does my application need a server and why do I believe it needs one?
- Use an appropriate design technique to write the necessary algorithm(s) including:
- Use an appropriate technique to represent the relationship among the modules.
- Write more detailed algorithms for each module and identify the pre- and post-conditions and program control of flow mechanisms required for any subprograms.
- Test the developing algorithm with appropriate data using a “fail-on-paper” process.
- Revise the algorithm, as required.
Write and debug the scripts required to implement a server-side application
- Demonstrate the ability to use an appropriate server-side scripting language environment (e.g. Express.js)
- Convert the algorithms into scripts consisting of collaborating modules that reflect the structure of the algorithm including:
- Use appropriate subprograms and/or objects to implement the various sections of the algorithm
- Maintain an appropriate balance between the coupling or dependency and cohesion or focus of the modules
- Pass data between the modules without unintended side-effects
- Use internal and external documentation
- Execute the script, and track and eradicate errors
- Compare the results of the script’s execution with the intent of the algorithm and modify, as required
Competencies and Skills
You will also be evaluated on your basic competencies such as your ability to:
- communicate
- manage information
- use numbers
- think and solve problems
- demonstrate positive attitudes and behaviours
- be responsible
- be adaptable
- learn continuously
- work safely
- work with others
- participate in projects and tasks
- Create a transitional strategy to accommodate personal changes and build personal values:
- identify short-term and long-term goals
- identify steps to achieve goals