The Tao of Objects 1990
From the originals
13 scansMachine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.
These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.
Image 1
The Tao of Objects A Beginner's Guide to Object-Oriented Programming Featuring practical C++ and Turbo Pascal examples that explore the interface between real-world problems and OOP techniques. Gary Entsminger Introduction by Bruce Eckel M&T BOOKS
A book cover with a large title at top, a red dotted rule, a woodcut-style illustration of two cupped hands holding a glowing orange cube beneath yellow stars on a blue night sky, and the M&T Books logo at bottom right.
Reading notes: Publisher logo text 'M&T BOOKS' is small and partly stylized; reading is approximate.
- Languages
- English
PDF page 1
A Beginner's Guide to Object-Oriented Programming
t . e aoo J eets A Beginner's Guide to Object,Oriented Programming Featuring practical C++ and Turbo Pascal examples that explore the interface between real,world problems and OOP techniques. Gary Entsminger Introduction by Bruce Eckel M&T - ~
Reading notes: Supplied OCR text contains stray fragments ('t .', 'e aoo J eets') that may be scan noise rather than printed copy. Commas inside 'Object,Oriented' and 'real,world' are likely OCR artifacts for hyphens and should be verified against the image. The publisher mark 'M&T' is a short abbreviation whose full form is not shown in the supplied copy. 'C++' and 'Turbo Pascal' are programming languages named in the subtitle rather than advertised products, so listing them as productNames is uncertain.
- Printed product names
- Turbo Pascal · C++
- Languages
- English
PDF page 2
The image is a blank white page with no visible artwork, layout elements, or text.
Reading notes: No visible text found in the image; transcript and printed fields left empty.
PDF page 3
The Tao of Objects A Beginner's Guide to Object-Oriented Programming
The Tao of Objects A Beginner's Guide to Object .. Oriented Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Gary Entsminger
Reading notes: Hyphenation in 'Object-Oriented' split across the source line as 'Object .. Oriented'; reconstructed as Object-Oriented.
- Languages
- English
PDF page 4
M&T Books A Division of MIS:Press A Subsidiary of Henry Holt and Company, Inc. 115 West 18th Street New York, New York 10011 © 1990 by M&T Publishing, Inc. Printed in the United States of America All rights reserved. No part of this book may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage and retrieval system, without prior written permission from the Publisher. Contact the Publisher for information on foreign rights. Limits of Liability and Disclaimer of Warranty The Author and Publisher of this book have used their best efforts in preparing this book and the programs contained in it. These efforts include tbe devef- opment, research, and testing of the theories and programs to determine their effectiveness. The Author and Publisher make no warranty of any kind, expressed or implied, with regard to these programs or the documentation contained in this book. The Author and Publisher shall not be liable in any event for incidental or consequential damages in connection with, or arising out of, the furnishing, performance, or use of these programs. Library of Congress Cataloging-in-Publication Data Entsminger, Gary, 1950- The Tao of objects: a beginner's guide to object-oriented programming I Gary Entsminger p. cm. Includes bibliographical references and index. ISBN 1-55851-155-5 1. Object-oriented programming (Computer science) I. Title. QA76.64.E58 1990 005.1-dc20 93 4 90-22920 CIP. All products, names, and services are trademarks or registered trademarks of their respective companies. Project Editor: Linda Comer Cover Design: Lauren Smith Designs Cover Illustration: Christine Mortensen Inside Illustrations: Mike Sagara
Reading notes: Dates 1990 and 1950- are from copyright and cataloging data, not advertising Catalog number 90-22920 is a Library of Congress control number, not a date Source contains OCR-like artifacts such as 'tbe' and 'devef-opment' that may be damaged characters
- Printed dates
- 1990 · 1950- · 90-22920
- Languages
- English
PDF page 5
The image is an entirely blank white page with no visible artwork, layout, or text.
Reading notes: No visible text or graphics appear anywhere on the page, so the transcript and printed fields are empty.
PDF page 6
WHY THIS BOOK IS FOR YOU
Contents WHY THIS BOOK IS FOR YOU ...........•••••............•..•.......•..........................••....•••....•• 1 INTRODUCTION BY BRUCE ECKEL ........................................................................3 CHAPTER 1: GREAT JOURNEYS, SINGLE STEPS .......................................... 17 About the Book .................................................................................................... 18 Choose Your Language ........................................................................................ 19 Objects and Actions ............................................................................................. 21 A World of Objects .............................................................................................. 24 About Inheritance ................................................................................................. 25 Building a New Type ........................................................................................... 29 Inheritance Among OOP Languages ................................................................... 31 Overriding Behavior and Data ............................................................................. 31 About Polymorphism ........................................................................................... 32 Static and Dynamic Binding ................................................................................ 36 Dynamic Programming ........................................................................................ 38 Another View ....................................................................................................... 39 Object Types ........................................................................................................ 39 About Types ......................................................................................................... 42 Constructors and Destructors ............................................................................... 45 The Importance of Being Constructed ................................................................. 48 Messages .............................................................................................................. 49 CHAPTER 2: THINKING IN OBJECTS ..................................................................53 Complex Numbers ............................................................................................... 59 Operator Overloading in C++ .............................................................................. 60 Types, Not Individuals ......................................................................................... 61
Reading notes: Headline taken from the first contents entry; the extracted text is a table of contents rather than advertising copy.
- Languages
- English
PDF page 7
THE TAO OF OBJECTS
THE TAO OF OBJECTS How Complex Should Objects Be? ..................................................................... 62 Base and Abstract Types ...................................................................................... 63 Abstract vs. Concrete ........................................................................................... 67 Planning for Change ............................................................................................. 68 The Trickle-Up Theory ........................................................................................ 69 Objects, Classes, and Types ................................................................................. 70 CHAPTER 3: EXTENDING THE SYSTEM ............................................................. 73 Sketching Your Objects ....................................................................................... 79 Reusing Code ....................................................................................................... 80 Choosing a First Application ............................................................................... 81 Checkers and Chess ............................................................................................. 82 Black Art .............................................................................................................. 86 Chaos Theory and Strange Attractors .................................................................. 90 Mathematic Attraction ......................................................................................... 91 Inheriting Strange Attractors ................................................................................ 93 Display Window .................................................................................................. 94 State Space ........................................................................................................... 96 Model = State Generator ...................................................................................... 97 Where OOP Works Best ...................................................................................... 99 Extending Systems ............................................................................................. 100 CHAPTER 4: SHAPING THE SYSTEM ................................................................ 111 Dynamics ........................................................................................................... 116 Constructors, Destructors, and Responsibility ................................................... 118 Managing From the Bottom Up ......................................................................... 119 Tracing Through Pointers .................................................................................. 125 Some Advantages ............................................................................................... 127 CHAPTER 5: DYNAMIC STYLE ............................................................................ 137 Expert Systems ................................................................................................... 140 OOP in AI .......................................................................................................... 142 Frames vs. Objects ............................................................................................. 142 Finding the Objects ............................................................................................ 143 Programming for Change ................................................................................... 152
- Languages
- English
PDF page 8
CONTENTS CHAPTER 6: AN OBJECT-ORIENTED NEURAL NETWORK ....................... 165 Objects and Networks ........................................................................................ 169 Deriving New Networks .................................................................................... 176 Data Lists and Events ......................................................................................... 177 CHAPTER 7: DESIGNING WITH OBJECTS ..••••••.•...•.•............•...••••...•••.•.....•..... 191 An Alternative to Chaos ..................................................................................... 192 What's Wrong With This Picture? ..................................................................... 194 Programming for Change ................................................................................... 197 Object-Oriented System Design ......................................................................... 199 The Five Stages of Object Design ...................................................................... 202 More on Object Discovery ................................................................................. 204 An Example ........................................................................................................ 205 The Object-Oriented Design System ................................................................. 206 The Complexity Test .......................................................................................... 211 OOP and GUI ..................................................................................................... 211 Libraries and Frameworks ................................................................................. 212 Skeptic's Comer ................................................................................................. 213 The Art of Software Design ............................................................................... 214 AFTERWORD BY ZACK URLOCKER .••••••............••..•....•.•..•............••••..••.••..•....•. 217 APPENDIX A: GLOSSARY .....••••..•.•.•.•••••••..•......•••••........•....•...••••.....•..........••..••••.• 225 APPENDIX B: REFERENCES AND RESOURCES ••••........•.......•••..•.••.••.....•....• 237 APPENDIX C: A CONCISE COMPARISON OF C++, TURBO PASCAL, AND SMALL TALK .....................................................................................................243
Reading notes: Table of contents uses dot leaders and page numbers; some OCR-style spacing artifacts such as 'CHAPTER 7: DESIGNING' and 'OBJECT-ORIENTED NEURAL' appear in the source text.
- Languages
- English
PDF page 9
Acknowledgements I'd like to thank a few folks who've supported and advised me, offered suggestions, read the manuscript, provided software, or just plain been helpful during the writing of this book: Brenda McLaughlin and Linda Comer at M&T Books; Zack Urlocker, David lntersimone, Nan Borreson, and Tammy Casey at Borland International; J.D. Hildebrand and Larry O'Brien at Computer Language; Mike Aoyd at Dr. Dobb' s Journal; Bill Gates at Midnight Engineering; and Susan Allen, Billy Barr, and Alison Brody at the Rocky Mountain Biological Laboratory. I especially thank Bruce Eckel, Chester Anderson, and Larry Fogg for the many hours of discussions and idea exchanges while I was planning and writing. I can't wait to see what you three do next. Small portions of this book first appeared in different form in Al Expert, Computer Language, Dr. Dobb' s Journal, Micro Cornucopia, and Neural Network News. The quotes by Lao-tzu from The Tao Te Ching are from the Stephen Mitchell translation (Harper & Row, New York, N.Y., 1988). The quote by Douglas Hofstadter and Daniel Dennett is from The Mind's I (Bantam Books, New York, N.Y., 1981). The quotes by Fritjof Capra are from The Tao ofPhysics (Shambhala, Berkeley, Calif., 1975). The quote by Riane Eisler is from The Chalice and the Blade (Harper & Row, San Francisco, Calif., 1987). The quote by David Rumelhart and James McClelland is from Parallel Dis- tributed Processing (MIT Press, Cambridge, Mass., 1987). The inside illustrations are based on photographs by Chester Anderson.
Reading notes: Source appears to be a book acknowledgements page rather than an advertisement, so no headline or advertised products or prices are present Some OCR spacing artifacts in titles such as 'Dr. Dobb' s Journal' and 'The Tao ofPhysics'
- Printed dates
- 1975 · 1981 · 1987 · 1988
- Languages
- English
PDF page 10
Why This Book is For You
Why This Book is For You This book can help you understand the key concepts of object-oriented pro- gramming. It's written for C and Pascal programmers who want to know how they can rethink their programs using objects. The Tao of Objects is a friendly, hands-on book that emphasizes the key advantages of programming with objects. The examples in the book are general enough to be of interest to anyone - and they 're fun. Subjects of particular interest include: • Object-oriented design • Program extension • Modeling systems • Chaos theory and strange attractors • Linked lists • Expert systems and much more. All examples are given in both C++ and Turbo Pascal, the object- oriented successors to C and Pascal. If you 're a C or Pascal programmer who wants a gentler introduction to object- oriented programming than a computer manual can provide, this book is for you. 1
- Printed product names
- Turbo Pascal · C++
- Languages
- English
PDF page 11
Introduction Expressing the ideas of object-oriented programming in terms of an Eastern philosophy is a wonderful concept. Gary and I spent many days in the woods and the mountains and many hours on the phone working on this view. Time being what it is (fleeting), I found I didn't have enough, and the book became Gary's. However, I hope I can make additional contributions in this introduction by raising some of the issues I feel are important. When I explained OOP to my friend Mark (a psychologist), he replied "I don't understand - how else would you do it? How were they doing it before?" I found I was at a loss to describe the old way. I mean, I practiced procedural programming and all that, but it never really made sense to me- it never seemed whole. In fact, I never took programming that seriously before OOP, probably because it seemed to take too much effort to get the job done. Because I can now think in much more powerful terms, I can solve much more complex problems. One difficulty people have when learning object-oriented programming is finding a way to think about it. Often you hear such unhelpful things as "It's easier for someone who doesn 'tknow how to program to learn OOP than for an experienced programmer" or "You need to unlearn what you know." My personal experience has not supported this. Although thinking about objects is different from thinking about procedural programming, it's different because you're stepping into a larger world, not because everything you know is wrong. This is especially true with hybrid languages like C++ and Turbo Pascal; you'll see that the ability to create user- defined data types isn't such a radical idea, since you use data types so much that you usually don't even think about them. However, it does tend to highlight the limitations of the built-in types and (to my mind) the relative primitiveness of what we've been using as programming languages so far. Once you begin using an object- oriented language, it's hard to go back. 3
- Printed product names
- C++ · Turbo Pascal
- Languages
- English