000 - Programming Languages
000 - Programming Languages
ENGINEERING PROGRAMMING I
Programming Languages
What is programming?
ADVANTAGES
Third-generation languages are high-level
programming languages designed to be more Portability across different platforms, easier
human-readable and independent of the maintenance, higher productivity.
underlying hardware. Examples include Fortran,
COBOL, C, Java, Python, and many others.
ADVANTAGES
Designed to further abstract programming
from the hardware and focus on specific Rapid development, focus on specific problem
problem domains, such as database query domains, higher-level of abstraction.
languages (SQL), report generators, and
domain-specific languages (DSLs).
9
Compiled vs. Interpreted
Languages
Compiled Interpreted
In compiled languages, the code In interpreted languages, the code
written by the programmer written by the programmer is
(source code) is transformed into executed line-by-line by an
machine code (binary code) by a interpreter at runtime, without
compiler before it is run on the being converted into machine
computer. This machine code is code beforehand.
specific to the target operating
system and hardware.
10
11
Compiled Languages
Examples: C, C++, Rust, Go
Advantages Disadvantages
Performance: Compiled code generally runs Compilation Time: The process of compiling
faster because it is directly executed by the can take time, especially for large projects.
computer's CPU.
Platform Dependence: Compiled code is
Optimization: Compilers can perform specific to a particular type of system,
optimizations to make the code run more meaning a different version of the code
efficiently. needs to be compiled for each type of system
it will run on.
Error Checking: Many errors can be caught at
compile-time before the program runs.
12
Interpreted Languages
Examples: Python, JavaScript, Ruby, PHP
Advantages Disadvantages
13
Additional Resources