Programming Languages

Programming languages are used to convert sets of instructions into a vocabulary that a computer can understand. The goal is to compile instructions into a format that will allow the computer to complete a specific task (see Figure 7.1). Over the years, these languages have evolved into generations:

  1. Generation 1: Machine language, the native language of a computer.
  2. Generation 2: Assembly language, human-readable notation that translates easily into machine language.
  3. Generation 3: High-level languageprogramming languages such as C+ and FORTRAN.
  4. Generation 4: Very high-level language, typically those used to access databases. SQL is an example of a fourth-generation language.
  5. Generation 5: Natural language. These are categorized by their use of inference engines and natural language processing. Mercury and Prolog are two examples of fifth-generation languages.

Figure 7.1. Programming languages.

After the code is written, it must be translated into a format that the computer will understand. These are the three most common methods:

Hundreds of different programming languages exist. Many have been written to fill a specific niche or market demand. Examples of common programming languages include these:

Object-Oriented Programming

Object-oriented programming (OOP) is a modular form of programming that supports object technology. It allows pieces of software to be reused and interchanged between programs. This method of programming has been widely embraced because it is more efficient and results in lower programming costs. Because it makes use of modules, a programmer can easily modify an existing program. New modules can be inserted into the program that inherit features from existing objects. Objects that share a particular structure and behavior are said to belong to a particular class. Code from one class can be passed down to another through the process of inheritance. Java and C++ are two examples of OOP languages.

Object-Oriented Considerations

Some of the major concerns and issues of OOP include these:

CORBA

Common Object Request Broker Architecture (CORBA) is vendor-independent middleware. Its purpose is to tie together different vendor products so they can seamlessly work together over distributed networks. The heart of the CORBA system is the Object Request Broker (ORB). The ORB simplifies the process of a client requesting server objects. The ORB finds the object; transparently activates it, if necessary; and then delivers the requested object back to the client.

Категории