[OT] difference of Scripting and programming
Shahzad Chohan
shahzad.chohan at gmail.com
Tue May 24 11:02:59 UTC 2005
Guys,
The way I see it is:
a script is file with code that hasn't been compiled, its is compiled
during run time, for example web php and perl code are examples of
scripting.
A program is one that has been compiled and run as a compiled binary.
Hope this helps
Shaz
On 5/24/05, John Summerfied <debian at herakles.homelinux.org> wrote:
> Nathaniel Hall wrote:
>
> >>
> >> The confusion between "what is scripting" and "what is programming"
> >> rises from the different levels in the set of activities called
> >> "programming".
> >
> >
> > My personal thought is that programs are compiled prior to the user
> > executing it. A script is compiled at the time it is run. Is that a
> > good way to differentiate them?
>
> Back when I was using CP/M-86 I had both Microsoft's basic interpreter
> and Microsoft's basic compiler.
>
> Even earlier, there were various PL/1 compilers and interpreters available.
>
> How could a source file be a program to one, a script to the other?
>
> Look more to what these programs do: if they principally run a sequence
> of *x commands I'd classify them as scripts (in the *x environment).
>
> Even then, if I took this:
> #!/bin/bash
> rsync --times --perms --recursive --timeout=3600 $@
>
> and coded it into equivalent C using the system() function, I'd be hard
> pressed to explain why the C program isn't a script:-)
>
>
>
>
> --
>
> Cheers
> John
>
> -- spambait
> 1aaaaaaa at computerdatasafe.com.au Z1aaaaaaa at computerdatasafe.com.au
> Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
>
More information about the fedora-list
mailing list