TweetFollow Us on Twitter

March 92 - Book Review - Developing Object-Oriented Software for the Mac

Book Review - Developing Object-Oriented Software for the Mac

Tom Becker

Developing Object-Oriented Software for the Macintosh
Neal Goldstein and Jeff Alger
Addison-Wesley, January, 1992
347 pages

Neal Goldstein and Jeff Alger have taken something complex and difficult-software engineering-and made it accessible and useful. Their book, Developing Object-Oriented Software for the Macintosh (DOOSM), and its methodology, Solution Based Modeling (SBM), shows a thorough understanding of the problems in developing software and the software engineering technology that can be applied to those problems.

SBM has a well designed graphic interface, called Visual Design Language (VDL). Most important, SBM is designed around the way people think. This is a real breakthrough. Of all the methodologies I've seen, SBM is the first practical one; it has a chance to improve how programmers do their work.

THE MACINTOSH AND SOFTWARE ENGINEERING

Software development methodologies tend to focus on difficult tasks like analysis and design, since there isn't much value in organizing something already straightforward, such as coding.

A methodology has a language for analysis and design concepts, and rules for ensuring the concepts are correct, or at least consistent. A good methodology is easy to use and understand, consistent, complete, flexible, and reliable. It helps diverse people work together, helps you create realistic schedules and budgets and avoid surprises, and helps you create software that meets the users' needs.

Most Macintosh software has been developed without using a formal methodology. Paradoxically, the primary reason for this is the innovation and high standards of the Macintosh. Methodologies, no matter what theories they use, are based on practical experience. The state of the art in methodology has had to catch up with graphic interfaces, event driven architectures, object-oriented programming, and application frameworks. This has meant that methodology is weakest in meeting the challenge of new technologies when it is needed the most.

In spite of the lack of methodology, Macintosh developers have managed to create a lot of excellent software. But there are also many applications that didn't make it, because of technical flaws, schedule problems, or not having the right features. The well educated, demanding users, and the intense competition in Macintosh software means that you can't just write better software. You have to continue to write ever better software, ever faster. The easiest computer to use is still hard to program.

Object programming and application frameworks such as MacApp promised to make Macintosh programming easier by making code more reusable and eliminating the need to deal directly with the Toolbox. It turns out that making code reusable, even with an OBJECT PROGRAMMING language, is harder than just hacking something out. Also, MacApp is well designed and well written, but can be hard to learn. Programming has been made easier, but only for those who manage to become MacApp experts. Making it easier to use object programming and MacApp is the challenge now.

It's interesting to see how object programming and MacApp affect the development process. MacApp frees you from writing a lot of boilerplate code such as main event loops. It separates the user interface from the rest of the program, and provides a fairly rich framework for adaptation. What's left to do is the analysis, interface design, and object design. In other words, MacApp eliminates most of the mindless parts of writing a Macintosh application, leaving only the hard parts. Meanwhile, object programming languages such as Object Pascal and C++ separate software design (class structure, object relationships and interfaces) from implementation (method code).

With object programming and MacApp, the analysis and design work that used to be mushed in with coding is forced into the open. This is good because it gets us closer to the heart of programming [1]. The next step in making programming easier is to come up with a better way to do analysis and design. In other words, a software development methodology.

ABOUT THE BOOK

The book, Developing Object-Oriented Software for the Macintosh, is divided into two parts. The first part establishes the need for SBM and goes into its theoretical background. The second part describes the details of the Visual Design Language (VDL) and SBM. The book also includes a brief appendix on a simple index card system for facilitating SBM.

Object-oriented software development

The first part of the book is written as a tutorial. It explains, in painstaking detail, the theoretical and practical considerations that went into SBM. I could tell this book was written by real engineers. It has structure. Concepts are introduced, described, and summarized. Each section depends on the previous one and leads to the next. Not a sentence was wasted.

This part of the book is well written, even entertaining. The authors present concepts with a clarity and confidence that comes from practical experience and repeated refinement. The examples are good and humor is used appropriately.

The first chapter establishes the need for improvement in how we develop software. It demolishes the standard myths of software development, then defines the characteristics of a good methodology and introduces object-oriented software development, more of which is covered in the following chapters.

The second chapter explains object programming, including inheritance, polymorphism, and class libraries.

The primary purpose of chapter 3, the Folklore of Object-Oriented Software Development, is the debunking of objectivism, the belief that objects in a computer program work the same way as real objects in the real world (and vice versa). The attractiveness of objectivism is easy to understand when you consider that a major early use of object-oriented programming was for simulation, where the purpose is to model real world objects. Real-time control is another application where there is a strong resemblance between the objects inside and the ones outside the computer. For most applications, however, objectivism really doesn't work. Real world objects have identity and structure, and may be similar to other objects in different ways, but real world objects are too complicated to be organized into hierarchies, even with multiple inheritance. Computer objects are an organization of code and data for the convenience of the programmer. Objects allow you to write software that has minimal side effects when it runs. Objects make it easier to modify the software because interfaces between objects are well defined and dependencies can be minimized. Class hierarchies are simply another convenience that allow code and data definitions for similar objects to be consolidated.

Chapter 4, Sample Applications (Why Aren't They Easy), is one of the best parts of the book. It shows how the classic object-oriented design approaches fall apart for non-trivial examples. It describes the messes you can get into. Object programmers will recognize them. It looks at how an expert might approach the problem, the principles behind that approach, and the characteristics of a good object-oriented design.

Chapter 5 is a short primer on cognitive science. It describes how people think in terms of cognitive categories, and the difference between overlapping categories (how people think), and hierarchical classes (how people think they think). This is a little subtle, but important because it is the primary justification for using planes, scenarios, and calibration in SBM, instead of using a top-down or linear approach.

Solution based modeling

The second part of the book is written as a reference. It gets down to brass tacks and describes how to use SBM.

Chapter 6 describes the Visual Design Language, which is used to communicate design information throughout the rest of the book. This is human interface design at its best. The authors worked with a graphic design firm to create VDL, and it shows. VDL simply looks better than the symbols for other methodologies. Perspective is used to make symbols easier to recognize, while packing more meaningful information into diagrams. The symbols are not hard to draw. This lets non-programmers participate more fully in analysis and design.

Chapter 7 is an overview of SBM. Chapters 8 through 11 describe the Business, Technology, Execution, and Program planes in a Solution Based Model.

The fundamental unit in a Solution Based Model is the scenario, a description in VDL of a single topic or concept. Scenarios are supposed to be simple-something that can be easily drawn on an index card. There is no fixed structure that the scenarios have to fit into. Instead, a calibration process is used to find inconsistencies among overlapping scenarios.

This is another great thing about SBM. It's hard for people to be simultaneously creative and critical; it always works better if you can separate the two dynamics. The different levels of abstraction in a project, such as requirements, specification, design, and implementation, are handled in SBM as planes. The relationships between planes are described using scenarios, just like everything else. The calibration process ensures that the model is valid from top to bottom. The same methodology is used for the whole software life cycle.

The Business plane is where you do requirements analysis. You describe how things are done now (the reference model), and how they will be done with the new system (the solution model). SBM can do an impact analysis by looking at the differences between the reference and solution models. This has enormous value for justifying a system proposal, marketing, planning, and training.

The Technology plane is where you do the system specification, in the form of a user interface model, content model, and environment model. The separation between the Business and Technology planes is a key factor. The Business plane focuses on people and how they do their work. The Technology plane focuses on the computer system and how it appears to the user.

The Execution plane contains the user interface, content, and environment architectures. This is where you design the objects and interfaces and figure out how library building blocks will be used in the system. The Business and Technology planes describe real-world objects (such as people, forms, reports, screens and keyboards) while the Execution plane describes software objects (such as views, documents, and commands). This is where you apply the theory on the failures of the classic object-oriented design approaches. If objectivism were true, the contents of the Execution plane would look just like the Business and Technology planes, when actually it takes real work to design the run-time objects. In practice, the principles of good object design are the same as those for good software design: well defined modules with minimal interdependencies.

The Program plane is where you design the types and classes for implementing the system. There is an important distinction between the Execution plane, which describes how the run-time objects are organized, and the Program plane, which describes how the source code is organized. This helps you avoid a common pitfall: confusing objects and classes.

The second part of the book is not as easy to understand as the first part. Because it's written as a reference, there isn't as much continuity between sections. I needed to read through it twice to fit everything together. For example, I got confused because I couldn't tell the difference between the "reference frame" and the "reference model" in the business plane. That was cleared up in the last chapter, which talks about looping around to the next iteration in the software life-cycle.

The concepts that I had the most difficulty with were how dangling threads are managed and how calibration is performed. The theory is clear, but the details are skimpy. It would help to have a worked out example-such as for the Payroll sample application-that goes through the whole SBM process, showing overlapping scenarios, dangling threads, calibration, and scenario revision. Of course, that might double the size of the book.

EVALUATION

SBM could clearly use a CASE (Computer Aided Software Engineering) tool. The tool would have a VDL drawing module for creating and editing scenarios that would be stored in a database. The database would make it easy to navigate through overlapping scenarios, and calibration could be automated. If a CASE tool came out soon enough and weren't too expensive, it could become a useful standard for communicating design information.

It would help to have more worked out examples and diagrams; they would be even more useful on-line. The ultimate test would be a diagram of SBM, done using its own Visual Design Language.

DOOSM is the result of two years of work by Neal Goldstein and Jeff Alger. In some respects the book has the feel of a version 1.0.0, but the authors' experience and hard work shows through. To quote James Plamondon, "MacApp is not just a bunch of user interface code, it is a library of accumulated wisdom on Macintosh programming." The real value of SBM is its accumulated wisdom. Get a copy, and study it carefully. And have your manager and any non-programmers on your team read the first part, at least. Any one of the many insights in the book will make it worthwhile.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Fallout Shelter pulls in ten times its u...
When the Fallout TV series was announced I, like I assume many others, assumed it was going to be an utter pile of garbage. Well, as we now know that couldn't be further from the truth. It was a smash hit, and this success has of course given the... | Read more »
Recruit two powerful-sounding students t...
I am a fan of anime, and I hear about a lot that comes through, but one that escaped my attention until now is A Certain Scientific Railgun T, and that name is very enticing. If it's new to you too, then players of Blue Archive can get a hands-on... | Read more »
Top Hat Studios unveils a new gameplay t...
There are a lot of big games coming that you might be excited about, but one of those I am most interested in is Athenian Rhapsody because it looks delightfully silly. The developers behind this project, the rather fancy-sounding Top Hat Studios,... | Read more »
Bound through time on the hunt for sneak...
Have you ever sat down and wondered what would happen if Dr Who and Sherlock Holmes went on an adventure? Well, besides probably being the best mash-up of English fiction, you'd get the Hidden Through Time series, and now Rogueside has announced... | Read more »
The secrets of Penacony might soon come...
Version 2.2 of Honkai: Star Rail is on the horizon and brings the culmination of the Penacony adventure after quite the escalation in the latest story quests. To help you through this new expansion is the introduction of two powerful new... | Read more »
The Legend of Heroes: Trails of Cold Ste...
I adore game series that have connecting lore and stories, which of course means the Legend of Heroes is very dear to me, Trails lore has been building for two decades. Excitedly, the next stage is upon us as Userjoy has announced the upcoming... | Read more »
Go from lowly lizard to wicked Wyvern in...
Do you like questing, and do you like dragons? If not then boy is this not the announcement for you, as Loongcheer Game has unveiled Quest Dragon: Idle Mobile Game. Yes, it is amazing Square Enix hasn’t sued them for copyright infringement, but... | Read more »
Aether Gazer unveils Chapter 16 of its m...
After a bit of maintenance, Aether Gazer has released Chapter 16 of its main storyline, titled Night Parade of the Beasts. This big update brings a new character, a special outfit, some special limited-time events, and, of course, an engaging... | Read more »
Challenge those pesky wyverns to a dance...
After recently having you do battle against your foes by wildly flailing Hello Kitty and friends at them, GungHo Online has whipped out another surprising collaboration for Puzzle & Dragons. It is now time to beat your opponents by cha-cha... | Read more »
Pack a magnifying glass and practice you...
Somehow it has already been a year since Torchlight: Infinite launched, and XD Games is celebrating by blending in what sounds like a truly fantastic new update. Fans of Cthulhu rejoice, as Whispering Mist brings some horror elements, and tests... | Read more »

Price Scanner via MacPrices.net

Apple’s 24-inch M3 iMacs are on sale for $150...
Amazon is offering a $150 discount on Apple’s new M3-powered 24″ iMacs. Prices start at $1149 for models with 8GB of RAM and 256GB of storage: – 24″ M3 iMac/8-core GPU/8GB/256GB: $1149.99, $150 off... Read more
Verizon has Apple AirPods on sale this weeken...
Verizon has Apple AirPods on sale for up to 31% off MSRP on their online store this weekend. Their prices are the lowest price available for AirPods from any Apple retailer. Verizon service is not... Read more
Apple has 15-inch M2 MacBook Airs available s...
Apple has clearance, Certified Refurbished, 15″ M2 MacBook Airs available starting at $1019 and ranging up to $300 off original MSRP. These are the cheapest 15″ MacBook Airs for sale today at Apple.... Read more
May 2024 Apple Education discounts on MacBook...
If you’re a student, teacher, or staff member at any educational institution, you can use your .edu email address when ordering at Apple Education to take up to $300 off the purchase of a new MacBook... Read more
Clearance 16-inch M2 Pro MacBook Pros in stoc...
Apple has clearance 16″ M2 Pro MacBook Pros available in their Certified Refurbished store starting at $2049 and ranging up to $450 off original MSRP. Each model features a new outer case, shipping... Read more
Save $300 at Apple on 14-inch M3 MacBook Pros...
Apple has 14″ M3 MacBook Pros with 16GB of RAM, Certified Refurbished, available for $270-$300 off MSRP. Each model features a new outer case, shipping is free, and an Apple 1-year warranty is... Read more
Apple continues to offer 14-inch M3 MacBook P...
Apple has 14″ M3 MacBook Pros, Certified Refurbished, available starting at only $1359 and ranging up to $270 off MSRP. Each model features a new outer case, shipping is free, and an Apple 1-year... Read more
Apple AirPods Pro with USB-C return to all-ti...
Amazon has Apple’s AirPods Pro with USB-C in stock and on sale for $179.99 including free shipping. Their price is $70 (28%) off MSRP, and it’s currently the lowest price available for new AirPods... Read more
Apple Magic Keyboards for iPads are on sale f...
Amazon has Apple Magic Keyboards for iPads on sale today for up to $70 off MSRP, shipping included: – Magic Keyboard for 10th-generation Apple iPad: $199, save $50 – Magic Keyboard for 11″ iPad Pro/... Read more
Apple’s 13-inch M2 MacBook Airs return to rec...
Apple retailers have 13″ MacBook Airs with M2 CPUs in stock and on sale this weekend starting at only $849 in Space Gray, Silver, Starlight, and Midnight colors. These are the lowest prices currently... Read more

Jobs Board

Liquor Stock Clerk - S. *Apple* St. - Idaho...
Liquor Stock Clerk - S. Apple St. Boise Posting Begin Date: 2023/10/10 Posting End Date: 2024/10/14 Category: Retail Sub Category: Customer Service Work Type: Part Read more
*Apple* App Developer - Datrose (United Stat...
…year experiencein programming and have computer knowledge with SWIFT. Job Responsibilites: Apple App Developer is expected to support essential tasks for the RxASL Read more
Omnichannel Associate - *Apple* Blossom Mal...
Omnichannel Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Operations Associate - *Apple* Blossom Mall...
Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Mall Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.