Program Development in Java : Abstraction, Specification, and Object-Oriented Design (Hardcover)
by Barbara Liskov and B. Liskov and John Guttag
In stock. Usually ships within 24 hours.
|
Overview
Written by a world-renowned expert on programming methodology, this book shows how to build production-quality programs--programs that are reliable, easy to maintain, and quick to modify. Its emphasis is on modular program construction: how to get the modules right and how to organize a program as a collection of modules. The book presents a methodology effective for either an individual programmer, who may be writing a small program or a single module in a larger one; or a software engineer, who may be part of a team developing a complex program comprised of many modules. Both audiences will acquire a solid foundation for object-oriented program design and component-based software development from this methodology.
Because each module in a program corresponds to an abstraction, such as a collection of documents or a routine to search the collection for documents of interest, the book first explains the kinds of abstractions most useful to programmers: procedures; iteration abstractions; and, most critically, data abstractions. Indeed, the author treats data abstraction as the central paradigm in object-oriented program design and implementation. The author also shows, with numerous examples, how to develop informal specifications that define these abstractions--specifications that describe what the modules do--and then discusses how to implement the modules so that they do what they are supposed to do with acceptable performance.
Other topics discussed include:
- Encapsulation and the need for an implementation to provide the behavior defined by the specification
- Tradeoffs between simplicity and performance
- Techniques to help readers of code understand and reason about it, focusing on such properties as rep invariants and abstraction functions
- Type hierarchy and its use in defining families of related data abstractions
- Debugging, testing, and requirements analysis
- Program design as a top-down, iterative process, and design patterns
The Java programming language is used for the book's examples. However, the techniques presented are language independent, and an introduction to key Java concepts is included for programmers who may not be familiar with the language.
0201657686B04062001
Used Book Partners offer 23 copies
Related Categories:
Books > Computers & Internet > Programming Languages - Java
Books > Computers & Internet > Programming - General
- ISBN-13: 9780201657685
- ISBN-10: 0201657686
- Publisher: Addison-Wesley Professional
- Date: June 2000
- Page Count: 464
Customer Reviews
Table of Contents
1. Introduction.
Abstraction.
Abstraction by Specification.
Kinds of Abstractions.
The Remainder of the Book.
2. Understanding Objects in Java.
Packages.
Objects and Variables.
Method Call Semantics.
Type Checking.
Conversions and Overloading.
Dispatching.
Types.
Vectors.
Stream Input/Output.
Java Applications.
Exercises.
3. Procedural Abstraction.
Specifications.
Specifications of Procedural Abstractions.
Implementing Procedures.
Designing Procedural Abstractions.
Summary.
Exercises.
4. Exceptions.
The Java Exception Mechanism.
Defining Exception Types.
Throwing Exceptions.
Handling Exceptions.
Coping with Unchecked Exceptions.
Programming with Exceptions.
Design Issues.
Checked versus Unchecked Exceptions.
Defensive Programming.
Summary.
Exercises.
5. Data Abstraction.
The Poly Abstraction.
Using Data Abstractions.
Implementing Data Abstractions.
Implementation of IntSet.
Implementation of Poly.
Records.
Additional Methods.
Aids to Understanding Implementations.
The Representation Invariant.
Implementing the Abstraction Function and Rep Invariant.
Discussion.
Properties of Data Abstraction Implementations.
Exposing the Rep.
Reasoning about Data Abstractions.
Reasoning about Operations.
Reasoning at the Abstract Level.
Design Issues.
Operation Categories.
Adequacy.
Locality and Modifiability.
Summary.
Exercises.
6. Iteration Abstraction.
Specifying Iterators.
Using Iterators.
Implementing Iterators.
Rep Invariants and Abstraction Functions for Generators.
Ordered Lists.
Design Issues.
Summary.
Exercises.
7. Type Hierarchy.
Dispatching.
Defining a Type Hierarchy.
Defining Hierarchies in Java.
A Simple Example.
Exception Types.
Abstract Classes.
Interfaces.
Multiple Implementations.
Polynomials.
The Meaning of Subtypes.
The Properties Rule.
Equality.
Discussion of Type Hierarchy.
Summary.
Exercises.
8. Polymorphic Abstractions.
Using Polymorphic Data Abstractions.
Equality Revisited.
Additional Methods.
More Flexibility.
Polymorphic Procedures.
Summary.
Exercises.
9. Specifications.
Some Criteria for Specifications.
Generality.
Clarity.
Why Specifications?
Summary.
Exercises.
10. Testing and Debugging.
Glass-Box Testing.
Testing Procedures.
Testing Iterators.
Testing Data Abstractions.
Testing Polymorphic Abstractions.
Testing a Type Hierarchy.
Unit and Integration Testing.
Tools for Testing.
Debugging.
Defensive Programming.
Summary.
Exercises.
11. Requirements Analysis.
Requirements Analysis Overview.
The Stock Tracker.
Summary.
Exercises.
12. Requirements Specifications.
Relations.
Textual Information.
Requirements Specifications.
Requirements Specification for Stock Tracker.
Stock Tracker Specification.
Requirements Specification for a Search Engine.
Summary.
Exercises.
13. Design.
The Design Notebook.
The Abstraction Sections.
The Structure of Interactive Programs.
Starting the Design.
Discussion of the Method.
Continuing the Design.
The Query Abstraction.
The WorldTable Abstraction.
Finishing Up.
Interaction between FP and UI.
Module Dependency Diagrams versus Data Models.
Review and Discussion.
Specifying Helpers.
Continuing the Design.
The Design Notebook.
Top-Down Design.
Summary.
Exercises.
14. Between Design and Implementation.
Structure.
Ordering the Program Development Process.
Summary.
Exercises.
15. Design Patterns.
Neat Hacks.
Singletons.
The State Pattern.
The Bridge Pattern.
Procedures Should Be Objects Too.
Composites.
The Power of Indirection.
Publish/Subscribe.
Summary.
Exercises.
Glossary.
Index.
- ISBN: 9780201657685
- Publisher: Addison-Wesley Professional
- Date: June 2000
- Page Count: 464
- Availability: In stock. Usually ships within 24 hours.








