INTECH 3201
INTEGRATIVE
PROGRAMMING
AND
TECHNOLOGIES II
Prepared by: CCCD
Course Topics
▪ Compiled vs Interpretative Languages
▪ Application vs Scripting Languages
Compiled vs Interpreted
▪ Every program is a set of instructions, whether it’s to
add two numbers or send a request over the internet.
3
▪ Compilers and interpreters take human-readable code
and convert it to computer-readable machine code.
4
Compiled Languages
▪ is a programming language whose implementations
are typically compilers
▪ translators that generate machine code from source
code
5
▪ In a compiled language, the target machine directly
translates the program into machine code that the
processor can execute.
6
7
▪ Compiled languages need a “build” step.
▪ they need to be manually compiled first.
▪ You need to “rebuild” the program every time you
need to make a change.
8
Interpreted Languages
▪ An interpreted language is a programming language
that is generally interpreted, without compiling a
program into machine instructions.
9
▪ Interpreters run through a program line by line and
execute each command.
10
11
KEY DIFFERENCE
▪ Compiler transforms code written in a high-level
programming language into the machine code at once
before the program runs, whereas an Interpreter
converts each high-level program statement, one by
one, into the machine code, during program run.
12
▪ Compiled code runs faster, while interpreted code
runs slower.
▪ Compiler displays all errors after compilation, on the
other hand, the Interpreter displays errors of each line
one by one.
13
▪ Compiler takes an entire program, whereas the
Interpreter takes a single line of code.
14
▪ Most programming languages can have both compiled
and interpreted implementations
15
▪ Python, for example, can be executed as either a
compiled program or as an interpreted language in
interactive mode.
16
Advantages of compiled
languages
▪ tend to be faster than interpreted code.
17
Disadvantage
▪ Additional time needed to complete the entire
compilation step before testing
18
Advantages of interpreted
languages
▪ tend to be more flexible, and often offer features like
dynamic typing and smaller program size.
19
Disadvantage
▪ Slower execution speed
20
Compiled Languages
▪ ADA
▪ ALGOL
▪ BASIC
▪ C/C++
▪ COBOL
▪ Go
▪ Haskell 21
Interpreted Languages
▪ Groovy
▪ Javascript
▪ Perl
▪ PHP
▪ Ruby
22
Application vs Scripting
▪ Both are programming language
23
Applications of Scripting
Languages
▪ To automate certain tasks in a program
▪ Extracting information from a data set
▪ Less code intensive as compared to traditional
programming languages
24
Applications of
Programming Languages
▪ To create application/programs/software with more
features or more sophisticated and complicated.
25
Key Difference
▪ Application programming is compiled while scripting
language is interpreted
▪ Application programming creates “exe” file while
scripting does not
26
▪ Application programs are independent and are self
executable, while scripts needs host.
▪ Application programs usually contain large number of
codes while scripts are small chunks of codes.
27
▪ Scripts are easier to learn compared to application
programming.
28
▪ Both application programming and scripting
programming serve unique purposes
▪ each with its distinct benefits and drawbacks
29
▪ They are highly use-case specific and hence, there’s
no good and bad when it comes to choosing scripting
and programming languages.
30