Programs vs. Scripts
Chamika Eshan
?? Freelance Software Engineer | ?? Information Technology Instructor | ?? ISO/IEC 27001:2022 Statement of Applicability Contributor | ?? Freelance Product Graphic Designer | ?? Academic Writer
What is a Program ? What is a Script ? What are the key differences between Programs and Scripts ?
Let's understand it step by step!
What is a Program ?
A program is a set of instructions written by a programmer in a specific programming language. Before it can run, the program is converted (compiled) into machine code, a language the computer's processor understands. This compilation is done using a compiler. Once compiled, the program becomes a standalone executable file like .exe for Windows. After compilation, the program can run directly on the computer as long as the required operating system and platform (hardware/software combination) are available.
Example: A video game written in C++ is compiled into an executable file. You can run it without needing the C++ compiler again, but it will only work on platforms it was designed for Windows or macOS.
What is a Script ?
A script is set of instruction written in a scripting language. Scripts are not converted into machine code. Instead, they are read and executed line-by-line by an interpreter. The interpreter acts as a middleman, translating the script into something the computer can understand. Without the interpreter, the script cannot run. Once you have the interpreter installed, the same script can run on different platforms (Windows, macOS, Linux) without changes because the interpreter handles platform-specific details.
Example: A Python script can be run on any computer as long as Python is installed.
Let's make it clearer by using real world example.
Advantages of Programs
Disadvantages of Programs
Advantages of Scripts
Disadvantages of Scripts
--
2 个月Hey,,,I am Shoikot and i am a beginner web developer . I recently came across this page about programming languages, https://medium.com/@kamruljpi https://medium.com/@kamruljpi/laravel-macros-turning-my-struggles-into-smooth-solutions-8f01d986e043and it has been incredibly helpful for me. Highly recommend checking it out!
Graphic designer I Logo design I Web design I UI/UX design
3 个月Insightful
Managing Director at SGRM Organization
3 个月Hi, I can help you get thousands of consumers for your course product. I'll give you the student's database for your course. Are you Interested?