101.school
CoursesAbout
Search...⌘K
Generate a course with AI...

    Intro to computers and programming

    Receive aemail containing the next unit.
    • Computer Basics
      • 1.1Overview of Computers
      • 1.2Understanding Operating Systems
      • 1.3Understanding Computer Networks
    • Introduction to Programming
      • 2.1What is Programming?
      • 2.2Basics of a Program
      • 2.3How a Program Runs on a Computer
    • Introduction to Coding
      • 3.1Writing your First Code
      • 3.2Language of Coding
      • 3.3Common Coding Practices
    • Scripting Basics
      • 4.1What is Scripting?
      • 4.2Difference Between Coding and Scripting
      • 4.3First Look at Shell Scripts
    • Basics of a Programming Language
      • 5.1Understanding Syntax
      • 5.2Basic Constructs – Loops & Conditionals
      • 5.3Functions and Procedures
    • Intermediate Programming
      • 6.1Arrays and Lists
      • 6.2File Handling
      • 6.3Error Handling
    • Introduction to Object Oriented Programming
      • 7.1Principles of Object Oriented Programming
      • 7.2Classes and Objects
      • 7.3Inheritance and Encapsulation
    • Practical Uses of Scripting
      • 8.1Process Automation with Scripts
      • 8.2Using Scripts for Data Manipulation
      • 8.3Web Scraping with Scripts
    • Algorithms and Data Structures
      • 9.1Basics of Algorithms
      • 9.2Introduction to Data Structures
      • 9.3Practical Uses of Data Structures
    • Code Efficiency
      • 10.1Writing Efficient Code
      • 10.2Debugging and Testing
      • 10.3Code Performance Analysis
    • Managing Code Project
      • 11.1Understanding Version Control
      • 11.2Use of GitHub for Project Management
      • 11.3Collaborative Coding Practices
    • Real World Coding Examples
      • 12.1Review and Analysis of Real World Code
      • 12.2Case Study—Use of Code in Solving Real World Problems
      • 12.3Building and Presenting a Mini Coding Project
    • Future Learning and Wrap Up
      • 13.1Essentials for Advanced Learning
      • 13.2Overview of Other Programming Languages
      • 13.3Course Wrap Up and Next Steps

    Scripting Basics

    Understanding the Difference Between Coding and Scripting

    programming language for run-time events

    Programming language for run-time events.

    In the world of computer programming, the terms "coding" and "scripting" are often used interchangeably. However, they refer to two different aspects of programming. This article will delve into the key differences between coding and scripting, when to use each, and the pros and cons of both.

    What is Coding?

    Coding is the process of creating software programs and applications. It involves writing lines of code in a specific programming language like Java, C++, or Python. The code is then compiled or interpreted to create a software program that can be executed on a computer. Coding is used to create standalone software, mobile apps, web applications, and more.

    What is Scripting?

    Scripting, on the other hand, is a subset of coding. It involves writing lines of code in a scripting language like JavaScript, Python, or Bash. These scripts are usually embedded within other software environments and are used to automate tasks within that environment. For example, a script might be used to automate the process of resizing images in a graphics program or to extract data from a database.

    Key Differences Between Coding and Scripting

    1. Compilation: Code written in a programming language needs to be compiled before it can be run. This means that the code is translated into machine language that the computer can understand. Scripts, however, are interpreted at runtime. This means that they are read and executed line by line by the computer as they are run.

    2. Use Case: Coding is used to create standalone software applications. Scripting, however, is used to automate tasks within existing software environments.

    3. Complexity: Coding usually involves more complex tasks and requires a deeper understanding of computer science principles. Scripting is generally simpler and more straightforward, focusing on automating repetitive tasks.

    When to Use Coding vs Scripting

    The choice between coding and scripting often depends on the task at hand. If you're creating a standalone software application, you'll likely use coding. If you're automating tasks within an existing software environment, you'll likely use scripting.

    For example, if you're creating a mobile app, you'll use coding. But if you're writing a script to automate data extraction from a database, you'll use scripting.

    Pros and Cons of Coding and Scripting

    Coding Pros:

    • Allows for the creation of complex, standalone software applications
    • Offers more control over the final product
    • Can be more efficient for large-scale projects

    Coding Cons:

    • Can be more complex and time-consuming
    • Requires a deeper understanding of computer science principles

    Scripting Pros:

    • Allows for quick and easy automation of tasks
    • Can be simpler and more straightforward than coding
    • Does not require compilation, making it faster to execute

    Scripting Cons:

    • Not suitable for creating standalone software applications
    • Can be less efficient for large-scale projects

    In conclusion, while coding and scripting are similar in that they both involve writing lines of code, they serve different purposes and have different use cases. Understanding the difference between the two is crucial for choosing the right approach for your programming tasks.

    Test me
    Practical exercise
    Further reading

    Good morning my good sir, any questions for me?

    Sign in to chat
    Next up: First Look at Shell Scripts