Those of us in the fast-changing field of computing often dismiss anything written more than five years ago as obsolete. Yet several decades-old papers by David L. Parnas [1-6] are as timely as those published in recent issues of the top journals. In these papers, Parnas articulates the timeless software design concepts known as information hiding and abstract interfaces.
Most programmers would describe a module as a unit of code such as a subroutine or class. Parnas focuses on the programmers rather than the programs. He defines a module as “a work assignment given to a programmer or group of programmers” as a part of a larger software development project . His goals are to enable programmers to develop each module independently, change one module without affecting other modules, and comprehend the overall system by examining one module at a time .
Programmers often design a software system by breaking the required processing into steps and making each step a module. Instead, Parnas uses information hiding to decompose the system into modules that satisfy his goals ; each module keeps its own secret—a design decision about some aspect of the system (e.g., choice of a data structure). A module’s design decision can change but none of the other modules should be affected. If some aspect is unlikely to change, the design can distribute this knowledge across several modules and the interfaces among them.
Most programmers would define a module by listing the names, parameters, and return values—the operation signatures—of its subprograms. Parnas again focuses on the programmers rather than the programs. He defines the “interface between two programs” to consist “of the set of assumptions that each programmer needs to make about the other program in order to demonstrate the correctness of his own program.”  In addition to an operation signature, these assumptions must specify the restrictions on data passed to the operation, the effect of the operation, and exceptions to the normal processing that may arise.
The interface of an information-hiding module must enable programmers to replace one implementation of the module by another without affecting other modules. This is called an abstract interface because it represents the assumptions common to all implementations of the module [1,4]. It reveals the module’s unchanging aspects but obscures aspects that may vary among implementations.
Information hiding and abstract interfaces underlie object-oriented programming, the predominant contemporary approach to programming. But programmers often oversimplify these concepts as merely hiding data representations inside classes . A secret of a well-designed module is more than hidden data. It is any aspect that can change as the system evolves: processing algorithms used, hardware devices accessed, other modules present, and specific functional requirements supported [2,5,6].
Although 40 years have passed since Parnas first wrote about information hiding , programmers can still learn much from studying his papers carefully and can improve their software designs by applying his ideas systematically.
- K. H. Britton, R. A. Parker, and D. L. Parnas. “A Procedure for Designing Abstract Interfaces for Device Interface Modules,” In Proceedings of the 5th International Conference on Software Engineering, pp. 95-204, March 1981.
- D. L. Parnas. “On the Criteria to Be Used in Decomposing Systems into Modules,” Communications of the ACM, Vol. 15, No. 12, pp. 1053-1058, 1972.
- D. L. Parnas. “On the Design and Development of Program Families,” IEEE Transactions on Software Engineering, Vol. SE-2, No. 1, pp. 1-9, March 1976.
- D. L. Parnas. “Some Software Engineering Principles,” Infotech State of the Art Report on Structured Analysis and Design, Infotech International, 10 pages, 1978. Reprinted in Software Fundamentals: Collected Papers by David L. Parnas, D. M. Hoffman and D. M. Weiss, editors, Addison-Wesley, 2001.
- D. L. Parnas. “Designing Software for Ease of Extension and Contraction,” IEEE Transactions on Software Engineering, Vol. SE-5, No. 1, pp. 128-138, March 1979.
- D. L. Parnas, P. C. Clements, and D. M. Weiss. “The Modular Structure of Complex Systems,” IEEE Transactions on Software Engineering, Vol. SE-11, No. 3, pp. 259- 266, March 1985.
- D. M. Weiss. “Introduction: On the Criteria to Be Used in Decomposing Systems into Modules,” In Software Fundamentals: Collected Papers by David L. Parnas, D. M. Hoffman and D. M. Weiss, editors, Addison-Wesley, 2001.