Results 1 to 3 of 3

Thread: What is the differene between script and program

  1. #1

    What is the differene between script and program

    A script is a type of program.

    When a program does or doesn't qualify as a script isn't a 100% clear thing. It's just a slightly vague label that people use to refer to certain kinds of program.

    A script usually means a program that is:

    Short and simple,

    used to automate something you could realistically do manually,

    low on interaction -- not having a full UI and usually asking little if anything in terms of input,

    interpreted rather than compiled,

    mostly free of its own logic, instead calling other programs/scripts in a defined order or with defined parameters, and
    best tutors in nyc
    something that does its job and then terminates, as opposed to a persistent process.

    A script is often, but not always, written for a specific use-case, to help the person writing it, as opposed to a tool distributed for general use.

    Say you wrote some code that copies all your files onto an external hard drive, does a quick checksum to make sure they all transferred okay, saves the list of copied files to a log, then ejects/unmounts the drive. That would count as a program -- a program is just any saved set of computer instructions, really. But most people would also call that a script. It's a script because it's a short, simple program that automates something you could be doing manually but want to save time with, which is mostly just calling other programs/system commands, and which you just fire and forget about.

    Some languages are commonly called 'scripting languages.' These languages are especially well-suited to writing scripts. That generally means they're (1) interpreted, (2) dynamically typed, (3) terse, capable of doing a lot with few lines and (3) shipped with a big standard library. Common examples would by Python, Perl, and Ruby. Any time you've written a single 50-line Python file to automate some common thing or solve a one-off problem, that's a script.
    Last edited by rino13x; 09-05-2019 at 06:53 AM.

  2. #2
    Actually typically a Program is a complete piece of code that is ready to be run by an end user without the needing for the programming language IDE. A script on the other hand is typically written to fulfill a specific function but it needs a programming language IDE (or runtime) in order to execute. For example, a C# program for calculating the area of a object would be code that can be executed by an end user without having to have the programming language installed. A C# script, on the other hand, is a piece of code that does not run on its own. One would need to either compile it into a program or execute it within the programming language IDE. Similarly Python or PHP scripts require the runtime interpreter in order to be executed.

  3. #3
    This is a spam paste from here:

    Most likely to be edited with ad links like all the other spam here. Mods, please wake up......

Similar Threads

  1. [CRASHES] AppHangB1: The program crashes during the game.
    By Showdebolapoa in forum Technical Support
    Replies: 1
    Last Post: 03-30-2017, 11:36 AM
  2. Thank you very much for creating this program :)
    By Zelc in forum Introductions
    Replies: 1
    Last Post: 02-28-2016, 12:32 AM
  3. [SOLVED] Program Crashes on Exit
    By AndrewD2 in forum Technical Support
    Replies: 2
    Last Post: 12-23-2015, 01:12 AM
  4. Thank you for this awesome program
    By mltdwn in forum General Discussion
    Replies: 2
    Last Post: 10-09-2015, 11:57 AM
  5. Bring Deckbuilder into the program
    By isukun in forum General Discussion
    Replies: 0
    Last Post: 04-23-2015, 06:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts