What is a programming language?
What is a programming language?
Why are there so many programming languages?
What are the types of programming languages?
Does the world need new languages?
programming language
A programming language is a set of rules that provides a way of telling a computer what operations to perform.
A programming language is a set of rules for communicating an algorithm. It provides a linguistic framework for describing computations
Introduction A programming language is a notational system for describing computation in a machine-readable and human-readable form. A programming language is a tool for developing executable models for a class of problem domains.
English is a natural language. It has words, symbols and grammatical rules.
A programming language also has words, symbols and rules of grammar. The grammatical rules are called syntax. Each programming language has a different set of syntax rules.
Why are there so many programming languages?
Programming languages have evolved over time as better ways have been developed to design them. ◦ First programming languages were developed in the 1950s ◦ Since then thousands of languages have been developed. Different programming languages are designed for different types of programs.
What are the types of Programming Languages
- First Generation Languages
- Second Generation Languages
- Third Generation Languages
- Fourth Generation Languages
- Fifth Generation Languages
- First Generation Languages Machine language
- Second Generation Languages Assembly languages
- Third Generation Languages
- Fourth Generations Languages
- Fifth Generation Languages
Programming Languages
- Traditional Programming Languages
- FORTRAN ◦ FORmula TRANslation. ◦ Developed at IBM in the mid-1950s. ◦ Designed for scientific and mathematical applications by scientists and engineers.
- COBOL ◦ COmmon Business Oriented Language. ◦ Developed in 1959. ◦ Designed to be common to many different computers. ◦ Typically used for business applications.
- BASIC ◦ Beginner’s All-purpose Symbolic Instruction Code. ◦ Developed at Dartmouth College in mid 1960s. ◦ Developed as a simple language for students to write programs with which they could interact through terminals.
- C ◦ Developed by Bell Laboratories in the early 1970s. ◦ Provides control and efficiency of assembly language while having third generation language features. ◦ Often used for system programs. ◦ UNIX is written in C.
- Object Oriented Programming Languages
- C++ ◦ It is C language with additional features. ◦ Widely used for developing system and application software. ◦ Graphical user interfaces can be developed easily with visual programming tools.
- JAVA ◦ An object-oriented language similar to C++ that eliminates lots of C++’s problematic features ◦ Allows a web page developer to create programs for applications, called applets that can be used through a browser. ◦ Objective of JAVA developers is that it be machine, platform and operating system independent.
- Special Programming Languages
- Scripting Languages ◦ JavaScript and VBScript ◦ Php and ASP ◦ Perl and Python
- Command Languages ◦ sh, csh, bash
- Text processing Languages ◦ LaTex, PostScript
- HTML ◦ HyperText Markup Language. ◦ Used on the Internet and the World Wide Web (WWW). ◦ Web page developer puts brief codes called tags in the page to indicate how the page should be formatted.
- Criteria in good Language Design
- Writability: The quality of a language that enables a programmer to use it to express a computation clearly, correctly, concisely, and quickly.
- Readability: The quality of a language that enables a programmer to understand and comprehend the nature of a computation easily and accurately.
- Orthogonality: The quality of a language that features provided have as few restrictions as possible and be combinable in any meaningful way.
- Reliability: The quality of a language that assures a program will not behave in unexpected or disastrous ways during execution.
- Maintainability: The quality of a language that eases errors can be found and corrected and new features added.
- Generality: The quality of a language that avoids special cases in the availability or use of constructs and by combining closely related constructs into a single more general one.
- Uniformity: The quality of a language that similar features should look similar and behave similar.
- Extensibility: The quality of a language that provides some general mechanism for the user to add new constructs to a language.
- Standardability: The quality of a language that allows programs written to be transported from one computer to another without significant change in language structure.
- Implementability: The quality of a language that provides a translator or interpreter can be written. This can address to complexity of the language definition.
Comments
Post a Comment