Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

the difference of a script and a program?

what the difference between a script(LINUX shell scripts & web scripts) and a program?

Comments

  • JonathanJonathan Posts: 2,914Member
    : what the difference between a script(LINUX shell scripts & web scripts)
    : and a program?
    :
    A script is written in a scripting language and a program is written in a programming language. OK?

    Thought not. Trouble is, how do we define scripting language and programming language? The lines have become very blurred. To me a scripting language doesn't support complex, if any, flow control or have much in the way of data types (either value (e.g. int, string) or container types (e.g. array, collection, hash)). It won't support subroutines, and certainly not object orientation.

    The languages web scripts are written in generally are almost certainly programming languages. ASP languages are programming languages for certain. Perl, which I work in, is most certainly a programming language too, though we talk about Perl scripts all the time. JavaScript is a programming language in my eyes. Not a particularly nice one, but anyway... :-)

    I guess one distinction some people make is programs = compiled, scripts = interpreted, which if you look at what is more often called a programming language and a scripting language kinda fits. The lines between interpretation and compilation are blurred today too, mind, so don't take this as a good metric either. Maybe scripts = run from the source, programs = compiled then run could be a better way to look at it. But it's still not clear cut.

    My own conclusion: does it really matter? Provided what I'm using does the job, I'm happy.

    Jonathan

    ###
    for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
    (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
    /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

Sign In or Register to comment.