Jump to content

Difference between Scripting and Coding

- - - - -

  • Please log in to reply
6 replies to this topic

#1
Irfan_A

Irfan_A

    Programmer

  • Members
  • PipPipPipPip
  • 186 posts
Hello CodeCall,
What is difference between scripting and coding?
Are both have own specific purpose?

On gedit, there are :
  • Markup : HTML, XML, LaTeX, etc.
  • Scripting : Tcl, Python, PHP, etc.
  • Source : C, C++, Java, Haskell, etc.

nomainwin : open "CodeCall" for dialog_nf_modal as #whileTrue : wait

#2
gregwarner

gregwarner

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 853 posts
  • Location:Arkansas
Check the Wikipedia entries for these languages to get a good working knowledge of their differences:

Markup language - Wikipedia, the free encyclopedia
Scripting language - Wikipedia, the free encyclopedia
Compiled language - Wikipedia, the free encyclopedia

To put it as simply as I can, a markup language describes the layout and content of a document. A scripting language is intended to be interpreted by a scripting engine, which in turn carries out the actions described in the script. For someone to be able to execute your script, they would have to have the same, or a compatible, script interpreter on their computer. A compiled language is intended to be passed through a compiler, which (among other things, not relevant here) converts the source into machine instructions, which can be executed directly by some sort of physical or virtual machine. For someone to be able to execute your compiled program, they would have to have the same machine that your program was compiled for. (x86, JVM, etc.)

Like I said, that is an extremely simplified and dumbed-down explanation.
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.

– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid


#3
DarkLordofthePenguins

DarkLordofthePenguins

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 409 posts
Scripting is coding. Scripting languages are simply interpreted programming languages.
Programming is a journey, not a destination.

#4
TheCompBoy

TheCompBoy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 272 posts
A script is a code fragment, rather than a complete application. Examples include commands in a command line language or code in a web page.
The definition of a scripting language is a programming language that is most typically used in a script setting. This means that they are usually interpreted rather than compiled languages, and are often dynamically typed.
Application programming languages include ones like C++ and Java.
Scripting languages include ones like the Unix shell languages and Javascript.

Scripting languages are languages that allow you to send commands directly to a system that executes these commands. These commands are read line by line and executed. An error is issued when a line cannot be executed for any reasn (wrong syntax, illegal operation,...). e.g. Python, shell-script, Matlab

Programming languages are languages that allow you to create a program by writing structured code that is read all at once by the system, checked for errors, and translated into an unreadable format that the machine can then execute. e.g. Java, C/C++, Visual Basic...

Programming languages are generally faster in execution than scripting languages but are often more difficult to use and have more rigid syntax. You can generally use either of them to do pretty much anything, though each is more suited for specific applications.

This is some information i got when i googled :) Hope you get it.
Think my post we're usefull? Please take your time and press the Like button at my post, Big Thanks!
For great C# & Android tutorials visit my blogg: http://www.thecompboy.com/

#5
gregwarner

gregwarner

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 853 posts
  • Location:Arkansas

TheCompBoy said:

A script is a code fragment, rather than a complete application.

There's no reason a script can't be a complete application. It's not really the type of language that dictates what it's best used for, but rather how it's used. Perl, for example, is an interpreted language (and therefore a scripting language by my definition in my previous post), and it can be used to write quick little jobs to "glue" a bigger project together, or to write entire applications.

TheCompBoy said:

Programming languages are languages that allow you to create a program by writing structured code that is read all at once by the system, checked for errors, and translated into an unreadable format that the machine can then execute. e.g. Java, C/C++, Visual Basic...

Programming languages are generally faster in execution than scripting languages but are often more difficult to use and have more rigid syntax. You can generally use either of them to do pretty much anything, though each is more suited for specific applications.

Splitting hairs here, but technically what you're calling a "programming language" here in contrast with a "scripting language" would be better called a "compiled programming language". Scripted and compiled languages are both "programming languages" at heart.
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.

– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid


#6
TheCompBoy

TheCompBoy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 272 posts

gregwarner said:

There's no reason a script can't be a complete application. It's not really the type of language that dictates what it's best used for, but rather how it's used. Perl, for example, is an interpreted language (and therefore a scripting language by my definition in my previous post), and it can be used to write quick little jobs to "glue" a bigger project together, or to write entire applications.



Splitting hairs here, but technically what you're calling a "programming language" here in contrast with a "scripting language" would be better called a "compiled programming language". Scripted and compiled languages are both "programming languages" at heart.

I think that you are completley right. The post i made above is mixed copy paste of info over the web.
Think my post we're usefull? Please take your time and press the Like button at my post, Big Thanks!
For great C# & Android tutorials visit my blogg: http://www.thecompboy.com/

#7
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
You can do a lot of good stuff JavaScript; for added functionality, you can add a server-side PHP script for request processing and use AJAX within JavaScript.

In situations like this, however, if you want to run things in a browser or with a window (GUI), at least some form of HTML is inevitable.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users