PL Evaluation Criteria
Lesson 3
MANOLO L. GIRON
RMTU
Structure of Programming Language
CRITERIA
• Readability
• Writability
• Reliability
• Cost
Structure of Programming Language
Readability
• One of the most important criteria for judging a programming language is
the ease with which programs can be read and understood.
• Overall Simplicity - A language with a large number of basic constructs is more
difficult to learn than one with a smaller number.
• Orthogonality - means that a relatively small set of primitive constructs can be
combined in a relatively small number of ways to build the control and data structures
of the language.
• Data Types - The presence of adequate facilities for defining data types and data
structures in a language is another significant aid to readability.
• Syntax Design - The syntax, or form, of the elements of a language has a significant
effect on the readability of programs.
Structure of Programming Language
Writability
• Writability is a measure of how easily a language can be used to create
programs for a chosen problem domain.
• Support for Abstraction - means the ability to define and then use complicated
structures or operations in ways that allow many of the details to be ignored.
• (1st category)Process abstraction - is the use of a subprogram to implement a sort
algorithm that is required several times in a program.
• (2nd category)Data abstraction - a binary tree that stores integer data in its nodes.
• Expressivity - it means that there are very powerful operators that allow a great deal
of computation to be accomplished with a very small program.
Structure of Programming Language
Reliability
• A program is said to be reliable if it performs to its specifications under all
conditions.
• Type Checking - is simply testing for type errors in a given program, either by the
compiler or during program execution.
• Exception Handling - The ability of a program to intercept run-time errors (as well as
other unusual conditions detectable by the program), take corrective measures, and then
continue is an obvious aid to reliability.
• Aliasing - is having two or more distinct names that can be used to access the same
memory cell.
Structure of Programming Language
Cost
• the cost of training programmers to use the language.
• the cost of compiling and executing programs written in a language is
greatly influenced by that language’s design.
• the cost of the language implementation system.
• the cost of poor reliability.
• the cost of maintaining programs, which includes both corrections and
modifications to add new functionality.
Structure of Programming Language
REFERENCES
• CONCEPTS OF
PROGRAMMING LANGUAGES
TENTH EDITION
ROBERT W. SEBESTA
Structure of Programming Language