or
Sign in to turn on 1-Click ordering.
 
 
Express Checkout with PayPhrase
What's this? | Create PayPhrase
Sorry!
More Buying Choices
53 used & new from $27.97

Have one to sell? Sell yours here
 
   
Large-Scale C++ Software Design
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get your Kindle here.
 
  

Large-Scale C++ Software Design (Paperback)

~ John Lakos (Author)
4.5 out of 5 stars  See all reviews (31 customer reviews)

List Price: $69.99
Price: $45.54 & this item ships for FREE with Super Saver Shipping. Details
You Save: $24.45 (35%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Want it delivered Tuesday, November 10? Choose One-Day Shipping at checkout. Details
28 new from $38.55 25 used from $27.97

Frequently Bought Together

Large-Scale C++ Software Design + Effective C++: 55 Specific Ways to Improve Your Programs and Designs (3rd Edition) + Design Patterns: Elements of Reusable Object-Oriented Software
Price For All Three: $117.35

Show availability and shipping details


Customers Who Bought This Item Also Bought

More Effective C++: 35 New Ways to Improve Your Programs and Designs

More Effective C++: 35 New Ways to Improve Your Programs and Designs

by Scott Meyers
4.4 out of 5 stars (39)  $28.19
Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library

Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library

by Scott Meyers
4.5 out of 5 stars (36)  $40.62
Exceptional C++: 47 Engineering Puzzles, Programming Problems, and Solutions

Exceptional C++: 47 Engineering Puzzles, Programming Problems, and Solutions

by Herb Sutter
4.7 out of 5 stars (35)  $32.25
Design Patterns: Elements of Reusable Object-Oriented Software

Design Patterns: Elements of Reusable Object-Oriented Software

by Erich Gamma
4.5 out of 5 stars (264)  $31.25
More Exceptional C++: 40 New Engineering Puzzles, Programming Problems, and Solutions

More Exceptional C++: 40 New Engineering Puzzles, Programming Problems, and Solutions

by Herb Sutter
4.6 out of 5 stars (12)  $29.61
Explore similar items

Editorial Reviews

Product Description

John Lakos--who works with the company (Mentor Graphics) that has written more large-scale programs in C++ than anyone else--shows how to decompose a large program into a number of smaller, more easily manageable components. A single 12,000-line code example runs throughout the book which shows the reader how to build a complex project which the professional can use later in actual work.


From the Inside Flap

As a member of the IC Division at Mentor Graphics Corporation, I am fortunate to have worked with many bright, talented software engineers, developing very large systems.

Back in 1985, Mentor Graphics became one of the first companies to attempt a truly large project in C++. Back then no one knew how to do that, and no one could have anticipated the cost overruns, slipped schedules, huge executables, poor performance, and incredibly expensive build times that a naive approach would inevitably produce.

Many valuable lessons were learned along the way - knowledge obtained through bitter experience. There were no books to help guide the design process; object-oriented designs on this scale had never before been attempted.

Ten years later, with a wealth of valuable experience under its belt, Mentor Graphics has produced several large software systems written in C++, and in doing so has paved the way for others to do the same without having to pay such a high price for the privilege.

During my 13 years as a C (turned C++) Computer-Aided Design (CAD) software developer, I have seen over and over again that planning ahead invariably produces a higher-quality, more maintainable product. My emphasis at Mentor Graphics has been on helping to ensure that quality is an integral part of the design process from the very start.

In 1990 I developed the graduate course "Object-Oriented Design and Programming" at Columbia University. As the instructor of this course since 1991, I have had the opportunity to share many of the insights that we at Mentor Graphics gained during our industrial-strength software development efforts. Questions and feedback from literally hundreds of graduate students and professional programmers have helped me to crystallize many important concepts. This book is a direct result of that experience. To my knowledge, this is the first text that identifies development and quality issues that arise only in large C++ projects. I hope that this information will be as useful in your work as it is in mine.

Audience Large-Scale C++ Software Design was written explicitly for experienced C++ software developers, system architects, and proactive quality-assurance professionals. This book is particularly appropriate for those involved in large development efforts such as databases, operating systems, compilers, and frameworks.

Developing a large-scale software system in C++ requires more than just a sound understanding of the logical design issues covered in most books on C++ programming. Effective design also requires a grasp of physical design concepts that, although closely tied to the technical aspects of development, include a dimension with which even expert professional software developers may have little or no experience.

Yet most of the advice presented in this book also applies to small projects. It is typical for a person to start with a small project and then begin to take on larger and more challenging enterprises. Often the scope of a particular project will expand, and what starts out as a small project becomes a major undertaking. The immediate consequences of disregarding good practice in a large project, however, are far more severe than they are for disregarding good practice in a smaller project.

This book unites high-level design concepts with specific C++ programming details to satisfy two needs:

An object-oriented design book geared specifically to practical aspects of the C++ programming language. A C++ programming book describing how to use the C++ programming language to develop very large systems.

Make no mistake, this is an advanced text. This is not the book from which to learn C++ syntax for the first time, nor is it likely to expose you to the dark corners of the language. Instead, this book will show you how to use the full power of the C++ language in ways that scale well to very large systems.

In short, if you feel that you know C++ well, but would like to understand more about how to use the language effectively on large projects, this book is for you.

Examples in this Text Most people learn by example. In general, I have supplied examples that illustrate real-world designs. I have avoided examples that illustrate one point but have blatant errors in other aspects of the design. I have also tried to avoid examples that illustrate a detail of the language but serve no other useful purpose.

Except where otherwise indicated, all examples in this text are intended to represent "good design." Examples presented in earlier chapters are therefore consistent with all practices recommended throughout the book. A disadvantage of this approach is that you may see code that is written differently from the code you are used to seeing, without yet knowing exactly why. I feel that being able to use all of the examples in the book for reference compensates for this drawback.

There are two notable exceptions to this practice: comments and package prefixes. Comments for many of the examples in this text have simply been omitted for lack of space. Where they are presented, they are at best minimal. Unfortunately, this is one place where the reader is asked to "do as I say, not as I do" -- at least in this book. Let the reader be assured that in practice I am scrupulous about commenting all interfaces as I write them (not after).

The second exception is the inconsistent use of package prefixes in the early examples of the book. In a large project environment package prefixes are required, but they are awkward at first and take some getting used to. I have elected to omit the consistent use of registered package prefixes until after they are formally presented in Chapter 7, so as not to detract from the presentation of other important fundamental material.

Many texts note that inline functions are used in examples for textual brevity when illustrating intended functionality. Since much of this book is directly related to organizational issues such as when to inline, my tendency will be to avoid inline functions in examples. If a function is declared inline, there is a justification for it beyond notational convenience.

Developing large systems in C++ is a constant series of engineering trade-offs. There are almost no absolutes. It is tempting to make statements using words such as never and always. Such statements allow for a simplified presentation of the material. For the level of C++ programmers whom I expect will read this book, such sweeping statements would be challenged - and rightly so. To avoid getting side-tracked in such situations, I will state what is (almost) always true, and then provide a footnote or a pointer to the exceptional case.

There are a variety of popular file name extensions used to distinguish C++ header files and C++ implementation files. For example:

Header File Extensions:

.h .hxx .H .h++ .hh .hpp
Implementation File Extensions: .c .cxx .C .c++ .cc .cpp

Throughout the examples we consistently use the .h extension to identify C++ header files and the .c extension to identify C++ implementation files. In the text, we will frequently refer to header files as .h files and to implementation files as .c files. Finally, all of the examples in this text have been compiled and are syntactically correct using SUN's version of CFRONT 3.0 running on SUN SPARC stations, as well as on HP700 series machines running their native C++ compiler. Of course, any errors are the sole responsibility of the author.

A Road Map There is a lot of material to cover in this book. Not all readers will have the same background. I have therefore provided some basic (but essential) material in Chapter 1 to help level the field. Expert C++ programmers may choose to skim this section or simply refer to it if needed. Chapter 2 contains a modest collection of software design rules that I would hope every experienced developer will quickly ratify.

Chapter 0: Introduction. An overview of what lies in wait for the large-scale C++ software developer.

PART I: BASICS

Chapter 1: Preliminaries. A review of basic language information, common design patterns, and style conventions used in this book.

Chapter 2: Ground Rules. Important design practices that should be followed in any C++ project.

The remainder of the text is divided into two main sections. The first, entitled "Physical Design Concepts," presents a sequence of important topics related to the physical structure of large systems. The material in these chapters (3 through 7) focuses on aspects of programming that will be entirely new to many readers, and cuts right to the bone of large program design. This section is presented "bottom up," with each chapter drawing on information developed in previous chapters.

PART II: PHYSICAL DESIGN CONCEPTS

Chapter 3: Components. The fundamental physical building blocks of a system.

Chapter 4: Physical Hierarchy. The importance of creating a hierarchy of components with acyclic physical dependencies for testing, maintainability, and reuse.

Chapter 5: Levelization. Specific techniques for reducing lin


Product Details

  • Paperback: 896 pages
  • Publisher: Addison-Wesley Professional (July 20, 1996)
  • Language: English
  • ISBN-10: 0201633620
  • ISBN-13: 978-0201633627
  • Product Dimensions: 9.1 x 7.3 x 1.4 inches
  • Shipping Weight: 3 pounds (View shipping rates and policies)
  • Average Customer Review: 4.5 out of 5 stars  See all reviews (31 customer reviews)
  • Amazon.com Sales Rank: #305,127 in Books (See Bestsellers in Books)

    Popular in this category: (What's this?)

    #63 in  Books > Computers & Internet > Computer Science > Software Engineering > Design Tools & Techniques

More About the Author

John S. Lakos
Discover books, learn about writers, read author blogs, and more.

Visit Amazon's John S. Lakos Page

Look Inside This Book



Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(1)

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

31 Reviews
5 star:
 (20)
4 star:
 (7)
3 star:
 (2)
2 star:
 (2)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.5 out of 5 stars (31 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
40 of 40 people found the following review helpful:
4.0 out of 5 stars A Must-Read, but Dated and Wordy, July 23, 2002
By Anders Johnson (San Jose, CA United States) - See all my reviews
(REAL NAME)   
This book is a must-read for any serious C++ programmer. Why? Because it is the only decent treatment of physical C++ design available.

Physical design issues, if not addressed, will inexorably cripple any sufficiently complex, performance-sensitive C++ project. Moreover, there is never any time to worry about physical design quality in the heat of battle, so you really need to deal with it up front.

Having said that, the book is not without its flaws.

First, the age of the text is evident. It doesn't address the interchangeability of typedefs and classes for certain purposes, it doesn't fully appreciate the power of namespaces, and it is rife with "the World didn't go that way" conventions. Fortunately, this doesn't prevent the book from getting its point across, but you do need to take some of its "rules" with a grain of salt.

Second, it's longer than it needs to be. This isn't so much of a liability, because it reads faster as a result. Still, its redundancy and long-windedness is sometimes tedious.

But all in all, if you've bothered to read this review, then you probably ought to own a copy of this book.

Comment Comment (1) | Permalink | Was this review helpful to you? Yes No (Report this)



 
26 of 27 people found the following review helpful:
5.0 out of 5 stars Invaluable for its unique insistence on gritty realism., March 25, 1999
Have you ever noticed that none of your introductions to C++ ever mention things like header files? This book corrects that omission with a vengeance, taking us deep into the nuts and bolts of real software. It describes things no other book is going to mention (e.g. redundant external include guards, or static nonmember functions to replace private members) and things the object-oriented community prefers to be silent about (e.g., encapsulation in files, not in classes).

Lakos's great strength is in pragmatics; this is advice on programming from someone who has been there. If your project is large enough to need source code control, it's large enough to need this book.

Sometimes the book drifts away from its roots, assuming a dragging academic tone. However, this does not change the overall rating -- a book with no substitutes.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
13 of 14 people found the following review helpful:
5.0 out of 5 stars Excellent book covering important but rare ropics, April 14, 2000
By Brian Robinson (Orlando, FL, USA) - See all my reviews
After having this book reccomended to me a number of times by various people, I decided to check it out. It is an excellent primer on how to design reusable classes in C++. It discusses a number of aspects of programming we tend to ignore, like the difference between logical and physical design. Anyone who wishes to write reusable, stable software in C++ should read this book.

I have one criticism, though, and that is that I believe the book is poorly organized. Although each individual peice of information in the book is useful and well thought out, I found that I wished he would cover things in a more natural order. Often I would read something and have to go back and reconcile it with what had been said earlier in the book, which was sometimes difficult. Don't let this criticism stop you from reading, however.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

5.0 out of 5 stars Large-Scale C++ Software Design. Mind the C++ !
I have to admit, this book is nothing like I thought it would be. It has more C++ than anything else. Read more
Published 16 months ago by Dmitry Dvoinikov

4.0 out of 5 stars The one and only book covering physical design
I'll start with some negative points. Due to the age of this book, much of the example code is out ot date. In particular, no bool and namespaces. Read more
Published 18 months ago by Paul Floyd

5.0 out of 5 stars wonderful book
This is a superb book on software design. While clearly intended for those working on large-scale projects with a broad base of users, the principles discussed are rock solid for... Read more
Published 19 months ago by Jeff

5.0 out of 5 stars Excellent book on the physical architecture of C++ applications
This book assumes you're already proficient in C++ and basic OOP design principles, and considers design at a level one higher than individual classes. Read more
Published on February 23, 2007 by Thing with a hook

5.0 out of 5 stars The Best Computer Science Book I've Ever Read - Period
I read this book back in 1998. It is the foundation for my understanding of the design of object oriented software. Read more
Published on January 5, 2006 by Michael Page

3.0 out of 5 stars Zzzzzzzzzzz... Wha? Huh? No, I wasn't asleep!
I'm sorry, this book is a snore. I read a lot of C and C++ books and this one is by far the most boring yet. That's my main complaint with this book. Read more
Published on May 27, 2005 by Dean Jones Jr.

2.0 out of 5 stars Dated book, not that great
This is a well written book, but not a well written book on C++. It is also not very good at being efficient with the amount of things you learn in the number of pages you read... Read more
Published on July 23, 2003 by An Pham

5.0 out of 5 stars issues that most books fail to see
This books is truly amazing, I have read a lot of books about C++ (probably too much), but I definitely can say that this books hold a different perspective about most issues and... Read more
Published on September 18, 2001 by leoor

5.0 out of 5 stars Highly insightful
This book provides great insight on a number of issues on OO physical design. Its information on refactoring pre-dated several of the more contemporary books. Read more
Published on August 27, 2001 by steve@vance.com

5.0 out of 5 stars An excellent analysis of physical design.
This comprehensive reference covers all aspects of physical design in C++. The material is relevant to all C++ projects however the effects of poor physical design are amplified... Read more
Published on June 13, 2001 by Daniel Mall

Only search this product's reviews



Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   




Product Information from the Amapedia Community

Beta (What's this?)


Look for Similar Items by Category


Look for Similar Items by Subject

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Your Recent History

 (What's this?)

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.