Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
Pro Objective-C design patterns for iOS
Chung C., Apress, Berkeley, CA, 2011. 392 pp. Type: Book
Date Reviewed: Jun 1 2012

In 1994, Helm, Gamma, Vlissides, and Johnson articulated for the computer science community the concept of design patterns through 23 examples in their groundbreaking Design patterns book [1]. Since that event, patterns have become a popular subject in programming books. In 2011, Carlo Chung rehashes 21 of the original 23 patterns (State and Interpreter have been dropped for reasons unspecified) for the iOS community. Just as Hollywood sometimes graces the movie-going public with the remake of a 20-year-old classic according to the fashion of a more current taste, it appears Apress has decided it was time to try something similar in the computer science publishing trade.

This book hearkens back to Buck and Yacktman’s 2009 publication of Cocoa design patterns [2]. Neither that nor this work is for beginners. While Buck and Yacktman spend many pages describing the patterns used in the design of Cocoa, Chung instead focuses on explaining how to use 21 general-purpose patterns to accomplish your own coding objectives. To this end, in the context of iOS, Chung uses a sample application (a touch-enabled scribbling app) and preaches design parables involving plumbers, rubber stamps, and public transportation. He provides ad hoc (that is, not part of the sample application) design problems relevant to teaching one or another point, and he gives examples in Objective-C, showing how to implement all of the above.

There is precious little, if any, new material in this book. The known material is revisited with a teaching style that may or may not endear Chung’s work to the reader. Why would one choose to read this book instead of, say, the work of Helm et al. [1]? If you are not familiar with patterns, but are familiar with Objective-C, this book could be an easy introduction to patterns, a subject that is now essential background knowledge for the software development professional. If you are familiar with patterns, and are somewhat experienced yet not very proficient in Objective-C programming, the coded examples could provide an interesting way to improve your mastery of this programming language. If you find the writing of Helm et al. [1] insufferable and obstreperous, then Chung’s may be a possible alternative. This is, however, not a book to read in the hope of gaining a greater understanding of the larger subject of patterns, as severe disappointment is guaranteed to follow.

The book is organized in 23 chapters. The first chapter is a very quick introduction to patterns and to Objective-C. The second chapter is an overview of designing an app with Cocoa Touch. This overview will be fleshed out in many, but not all, of the following chapters. (The progression could appear at times disconnected.) The next 21 chapters address one design pattern each, and are organized in 8 groups: “Object Creation” (Prototype, Factory Method, Abstract Factory, Builder, Singleton), “Interface Adaptation” (Adapter, Bridge, Facade), “Decoupling of Objects” (Mediator, Observer), “Abstract Collection” (Composite, Iterator), “Behavioral Extension” (Visitor, Decorator, Chain of Responsibility), “Algorithm Encapsulation” (Template Method, Strategy, Command), “Performance and Object Access” (Flyweight, Proxy), and “State of Object” (Memento). The taxonomy used and the explanation of the patterns and their use are a little different from that of other works. “Better” remains in the eye of the beholder...

Reviewer:  A. Squassabia Review #: CR140223 (1210-0986)
1) Helm, R.; Gamma, E.; Vlissides, J.; Johnson, R. Design patterns. Addison-Wesley, Boston, MA, 1994.
2) Buck, E. M.; Yacktman, D. A. Cocoa design patterns. Addison-Wesley, Upper Saddle River, NJ, 2009.
Bookmark and Share
  Reviewer Selected
Editor Recommended
Featured Reviewer
 
 
Object-Oriented Programming (D.1.5 )
 
 
Objective-C (D.3.2 ... )
 
 
Portable Devices (C.5.3 ... )
 
Would you recommend this review?
yes
no
Other reviews under "Object-Oriented Programming": Date
Object-oriented programming systems, languages, and applications
Paepcke A.  Object-oriented programming systems, languages, and applications,Phoenix, AZ,Oct 6-Oct 11, 1991,1991. Type: Whole Proceedings
Oct 1 1992
Object lifecycles
Shlaer S., Mellor S., Yourdon Press, Upper Saddle River, NJ, 1992. Type: Book (9780136299400)
Apr 1 1993
Object-oriented programming
Voss G., Osborne/McGraw-Hill, Berkeley, CA, 1991. Type: Book (9780078816826)
Oct 1 1992
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy