Lesson 2 - Programming VS Scripting.pdf
Document Details
Uploaded by FunnyNobility3255
University of Rizal System, Binangonan
2024
Tags
Full Transcript
LESSON 2: Programming VS Scripting Web Systems Technology 2 (Lecture) BS Information Technology | 3-1 A | Prof. Jayson Daluyon | Sem 1 2024 PROGRAMMING LANGUAGES Programming Languages Features ▪ Executes inside...
LESSON 2: Programming VS Scripting Web Systems Technology 2 (Lecture) BS Information Technology | 3-1 A | Prof. Jayson Daluyon | Sem 1 2024 PROGRAMMING LANGUAGES Programming Languages Features ▪ Executes inside a script or other parent What are programming languages? code ▪ Allows us to give instructions to a ▪ Java programming type languages can be computer in a language the computer used at several platforms after compilation understands. ▪ They are fully compatible with the complex ▪ Binary – a portion of the language that a mathematical models computer can understand. ▪ Compiling – translating programming Sample Programming Languages language into a binary. ▪ Python – is a versatile, programming language. It can be used in data science Why are there so many programming and machine learning to web development languages? ▪ Java – can be used for mobile ▪ Evolution applications, software development, and ▪ Socio-economic factors large systems development ▪ Orientation towards special purposes ▪ C# – can be used for a wide variety of ▪ Orientation towards special hardware applications, including game ▪ Different ideas about what is pleasant to development, enterprise software, video use games, mobile apps and more ▪ C++ – one of the most powerful What makes a language useful? programming languages and is used in a ▪ It is easy to learn wide range of industries, including VR, ▪ It is easy to express things, easy to use software and game development, robotics once fluent, “powerful” and scientific computing ▪ It is easy to implement ▪ Possible to compile to very good SCRIPTING LANGUAGES (fast/small) code ▪ Backing of a powerful sponsor What are scripting languages? ▪ Wife dissemination at minimal cost ▪ is a programming language that is interpreted Why do we have programming languages? ▪ are often used for short scripts over full ▪ Way of thinking – way of expressing computer programs algorithms ▪ simply a series of commands that are able ▪ Languages from the user/s point of view to be executed without the need for ▪ Abstraction of virtual machine – way of compiling specifying what you want ▪ The hardware to do without getting down Scripting languages features into the bits 1. Automation of the required process into a ▪ Languages from the implementer’s point program of view 2. Fetching information from the provided data sets Compilation Interpretation 3. Requires less code than modern Pure Compilation – Pure Interpretation – programming langauges The compiler translates Interpreter stays the high-level source around for the Types of scripting languages program into an execution of the ▪ Server-side – run on a web server. When equivalent target program a client sends a request, the server program Interpreter is the focus responds by sending content via HTTP of control during ▪ Client-side – run on the client end, on execution their web browser. They also reduce ✓ Better ✓ Greater demand on the server, allowing web pages performance flexibility to load faster ✓ Better ▪ Note: The only difference of the two is that diagnostics the former requires server for processing Page 1 | jic LESSON 2: Programming VS Scripting Web Systems Technology 2 (Lecture) BS Information Technology | 3-1 A | Prof. Jayson Daluyon | Sem 1 2024 Server-side Examples ▪ PHP – the most popular server-side language used on the web ▪ ASP.NET – web application framework developed by Microsoft ▪ Node.js – can run on a multitude of platforms, including Windows, Linux, Unix, Mac, etc. ▪ Ruby – dynamic and focuses heavily on simplicity ▪ Perl – is a bit of a mashup between C, shell, script, AWK and sed Client-side Examples ▪ HTML – the foundation of web development ▪ CSS – improves appearance and graphics on pages in your web browser ▪ JavaScript – though typically client-side, can occasionally be used on the server- side as well SCRIPTING VS PROGRAMMING LANGUAGE Scripting vs Programming Language ▪ All scripting languages are considered programming languages ▪ Only difference is, scripting doesn’t require any compilation (complier) and are directly interpreted ▪ Compiled codes execute faster as they are changed into native machine program Page 2 | jic