LESSON 1 - Programming Languages
LESSON 1 - Programming Languages
g
Languages
Programming Language
A programming language is a
computer language programmers use
to develop software programs, scripts,
or other sets of instructions for
computers to execute.
Although many languages share similarities,
each has its own syntax.
use.
Examples of high-level languages include BASIC, C, C++
machine code.
1.2 Low-Level Language
doing so.
This approach lends itself naturally to the programmatic
applications.
2.1 Declarative Programming
Languages
• ABSET • CLP(R)
• Absys • Curl
• Alpha • CycL
• Ant • Datalog
• ASCEND • DASL
• Atom • Dependent ML
• ATS • ECL
• Brooks • Embedded SQL
• Candle • Erlang
• Curry • EAML
2.2 Imperative Language
A general-purpose language is a
programming language that is capable of
creating all types of programs.
For
example, C is a good example of a
general-purpose language.
3.1 General-Purpose Language
Encapsulation - The grouping of related functions and data (variables) together into
an object to help reduce complexity and allow parts of the code to be reused.
Inheritance - Eliminate redundant code by inheriting functions and data from other
classes.
Advantages of scripts
• Open source, allowing users to view and edit
the script if needed.
• Does not require the file to be compiled, but may be
when necessary.
• Easy to learn and write.
• Easy to port between different operating systems.
• Much faster to develop than an actual program - some
individuals and companies write scripts as a prototype
for actual programs.
5.3 Script
Disadvantages of scripts
• Open source, allows others to view source code,
which may be prohibited by some companies.
• Requires the user to install an interpreter or
separate program before the script can run.
• In some situations, they may be slower than a
compiled program.
5.3 Script
2. Linux command
https://www.computerhope.com/jargon/h/highll.htm
https://www.computerhope.com/jargon/l/lowlangu.htm
https://www.computerhope.com/jargon/d/declarprog.htm
https://www.computerhope.com/jargon/i/imp-programming.htm
https://www.computerhope.com/jargon/p/proclang.htm