Week 8 & 9 - Computer Languages
Week 8 & 9 - Computer Languages
Week 8 & 9 - Computer Languages
(MET)
WEEK 08 & 09
Computer Languages
Hardware/Software Interaction
Code
Statements written in a programming language
Writing code can be tedious
Code must be perfect
Order of steps must be exact
Writing code is quite exciting
Problems are solved
New ideas are formed
Writing Code
Hardware/Software Interaction
Machine code
Recall that computers think in binary
Code is translated into machine code
CPU executes the machine code
CPUs have a unique machine code
Hardware/Software Interaction
Programming languages
Simplifies the writing of code
Original code is called source code
Several hundred languages exist
Types of Languages
Machine language
Assembly language
High-level language
Machine Language
In Binary In Decimal
(Difficult to read and understand) (Easier to read and understand)
Advantages & Limitations of Machine Language
Advantages
Can be executed very fast
Limitations
Machine Dependent
Difficult to program
Error prone
Difficult to modify
Assembly Language
Machine dependent
Knowledge of hardware required
Machine level coding
High-level Languages
Machine independent
Do not require programmers to know anything about the
internal structure of computer on which high-level
language programs will be executed
Deal with high-level coding, enabling the programmers to
write instructions using English words and familiar
mathematical symbols and expressions
Compiler
Machine independent
Easier to learn and use
Fewer errors during program development
Lower program preparation cost
Better documentation
Easier to maintain
Limitation of High-Level Language
Markup languages
Describe how the text is formatted
Hyper Text Markup Language (HTML)
Basis of all web pages
Defines web structure using tags
Easy to learn and use
Created with a text editor
WWW Development Languages
13B-
38
Scripting languages
Create dynamic web pages
Change based on user input
HTML can create static pages
Page is generated as needed
WWW Development Languages
13B-
41
JavaScript
Developed by Netscape
Works inside of HTML
Page verification and simple animation
Based on Java
WWW Development Languages
13B-
42
Perl
Old UNIX language
Found on all Windows and Linux servers
Excellent web scripting language
WWW Development Languages
13B-
43