Page
1
(This page has no text content)
Page
2
(This page has no text content)
Page
3
97 Things Every Software Architect Should Know
Page
4
(This page has no text content)
Page
5
97 Things Every Software Architect Should Know Collective Wisdom from the Experts Edited by Richard Monson-Haefel Beijing · Cambridge · Farnham · Köln · Sebastopol · Taipei · Tokyo
Page
6
97 Things Every Software Architect Should Know Edited by Richard Monson-Haefel Copyright © 2009 O’Reilly Media, Inc. All rights reserved. Printed in the United States of America Published by O’Reilly Media, Inc. 1005 Gravenstein Highway North, Sebastopol CA 95472 O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (safari.oreilly.com). For more information, contact our corporate/institutional sales department: (800) 998-9938 or corporate@oreilly.com. Editor: Mike Loukides Series Editor: Richard Monson-Haefel Production Editor: Rachel Monaghan Proofreader: Rachel Monaghan Compositor: Ron Bilodeau Indexer: Julie Hawks Interior Designer: Ron Bilodeau Cover Designer: Mark Paglietti Print History: February 2009: First Edition. The O’Reilly logo is a registered trademark of O’Reilly Media, Inc. 97 Things Every Software Architect Should Know and related trade dress are trademarks of O’Reilly Media, Inc. Many of the designations used by manufacturers and sellers to distinguish their products are clarified as trademarks. Where those designations appear in this book, and O’Reilly Media, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps. While every precaution has been taken in the preparation of this book, the publishers and au- thors assume no responsibility for errors and omissions, or for damages resulting from the use of the information contained herein. This book uses Repkover,™ a durable and flexible lay-flat binding. ISBN: 978-0-596-52269-8 [M]
Page
7
v Contents Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv Don’t.Put.Your.Resume.Ahead.of.the.Requirements. . . . . . 2 Nitin Borwankar Simplify.Essential.Complexity;.Diminish.Accidental.. Complexity.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Neal Ford Chances.Are,.Your.Biggest.Problem.Isn’t.Technical. . . . . . . 6 Mark Ramm Communication.Is.King;.Clarity.and.Leadership,.. Its.Humble.Servants. . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Mark Richards Application.Architecture.Determines.Application.. Performance.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Randy Stafford Seek.the.Value.in.Requested.Capabilities. . . . . . . . . . . . . 12 Einar Landre Stand.Up!.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Udi Dahan
Page
8
vi Contents Everything.Will.Ultimately.Fail. . . . . . . . . . . . . . . . . . . . 16 Michael Nygard You’re.Negotiating.More.Often.Than.You.Think. . . . . . . . . 18 Michael Nygard Quantify.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Keith Braithwaite One.Line.of.Working.Code.Is.Worth.500.of.. Specification.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Allison Randal There.Is.No.One-Size-Fits-All.Solution. . . . . . . . . . . . . . 24 Randy Stafford It’s.Never.Too.Early.to.Think.About.Performance. . . . . . . 26 Rebecca Parsons Architecting.Is.About.Balancing. . . . . . . . . . . . . . . . . . 28 Randy Stafford Commit-and-Run.Is.a.Crime.. . . . . . . . . . . . . . . . . . . . 30 Niclas Nilsson There.Can.Be.More.Than.One.. . . . . . . . . . . . . . . . . . . 32 Keith Braithwaite Business.Drives. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Dave Muirhead Simplicity.Before.Generality,.Use.Before.Reuse. . . . . . . . 36 Kevlin Henney Architects.Must.Be.Hands.On.. . . . . . . . . . . . . . . . . . . 38 John Davies
Page
9
viiContents Continuously.Integrate. . . . . . . . . . . . . . . . . . . . . . . . 40 David Bartlett Avoid.Scheduling.Failures. . . . . . . . . . . . . . . . . . . . . . 42 Norman Carnovale Architectural.Tradeoffs. . . . . . . . . . . . . . . . . . . . . . . . 44 Mark Richards Database.As.a.Fortress. . . . . . . . . . . . . . . . . . . . . . . . 46 Dan Chak Use.Uncertainty.As.a.Driver. . . . . . . . . . . . . . . . . . . . . 48 Kevlin Henney Warning:.Problems.in.Mirror.May.Be.Larger.. Than.They.Appear. . . . . . . . . . . . . . . . . . . . . . . . . . . 50 Dave Quick Reuse.Is.About.People.and.Education,.Not.Just.. Architecture. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 Jeremy Meyer There.Is.No.‘I’.in.Architecture. . . . . . . . . . . . . . . . . . . . 54 Dave Quick Get.the.1,000-Foot.View. . . . . . . . . . . . . . . . . . . . . . . 56 Erik Doernenburg Try.Before.Choosing.. . . . . . . . . . . . . . . . . . . . . . . . . 58 Erik Doernenburg Understand.the.Business.Domain. . . . . . . . . . . . . . . . . 60 Mark Richards
Page
10
viii Contents Programming.Is.an.Act.of.Design. . . . . . . . . . . . . . . . . 62 Einar Landre Give.Developers.Autonomy. . . . . . . . . . . . . . . . . . . . . 64 Philip Nelson Time.Changes.Everything. . . . . . . . . . . . . . . . . . . . . . 66 Philip Nelson “Software.Architect”.Has.Only.Lowercase.a’s;.. Deal.with.It.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 Barry Hawkins Scope.Is.the.Enemy.of.Success.. . . . . . . . . . . . . . . . . . 70 Dave Quick Value.Stewardship.Over.Showmanship.. . . . . . . . . . . . . 72 Barry Hawkins Software.Architecture.Has.Ethical.Consequences.. . . . . . 74 Michael Nygard Skyscrapers.Aren’t.Scalable. . . . . . . . . . . . . . . . . . . . . 76 Michael Nygard Heterogeneity.Wins. . . . . . . . . . . . . . . . . . . . . . . . . . 78 Edward Garson It’s.All.About.Performance.. . . . . . . . . . . . . . . . . . . . . 80 Craig Russell Engineer.in.the.White.Spaces.. . . . . . . . . . . . . . . . . . . 82 Michael Nygard Talk.the.Talk. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 Mark Richards
Page
11
ixContents Context.Is.King. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 Edward Garson Dwarves,.Elves,.Wizards,.and.Kings. . . . . . . . . . . . . . . . 88 Evan Cofsky Learn.from.Architects.of.Buildings.. . . . . . . . . . . . . . . . 90 Keith Braithwaite Fight.Repetition.. . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 Niclas Nilsson Welcome.to.the.Real.World. . . . . . . . . . . . . . . . . . . . . 94 Gregor Hohpe Don’t.Control,.but.Observe. . . . . . . . . . . . . . . . . . . . . 96 Gregor Hohpe Janus.the.Architect. . . . . . . . . . . . . . . . . . . . . . . . . . 98 David Bartlett Architects’.Focus.Is.on.the.Boundaries.and.Interfaces. . . . 100 Einar Landre Empower.Developers. . . . . . . . . . . . . . . . . . . . . . . . . 102 Timothy High Record.Your.Rationale.. . . . . . . . . . . . . . . . . . . . . . . . 104 Timothy High Challenge.Assumptions—Especially.Your.Own. . . . . . . . . . 106 Timothy High Share.Your.Knowledge.and.Experiences.. . . . . . . . . . . . 108 Paul W. Homer
Page
12
x Contents Pattern.Pathology. . . . . . . . . . . . . . . . . . . . . . . . . . . 110 Chad LaVigne Don’t.Stretch.the.Architecture.Metaphors.. . . . . . . . . . . 112 David Ing Focus.on.Application.Support.and.Maintenance.. . . . . . . 114 Mncedisi Kasper Prepare.to.Pick.Two. . . . . . . . . . . . . . . . . . . . . . . . . . 116 Bill de hÓra Prefer.Principles,.Axioms,.and.Analogies.to.. Opinion.and.Taste. . . . . . . . . . . . . . . . . . . . . . . . . . . 118 Michael Harmer Start.with.a.Walking.Skeleton.. . . . . . . . . . . . . . . . . . . 120 Clint Shank It.Is.All.About.The.Data.. . . . . . . . . . . . . . . . . . . . . . . 122 Paul W. Homer Make.Sure.the.Simple.Stuff.Is.Simple. . . . . . . . . . . . . . . 124 Chad LaVigne Before.Anything,.an.Architect.Is.a.Developer.. . . . . . . . . 126 Mike Brown The.ROI.Variable. . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 George Malamidis Your.System.Is.Legacy;.Design.for.It. . . . . . . . . . . . . . . 130 Dave Anderson If.There.Is.Only.One.Solution,.Get.a.Second.Opinion... . . . 132 Timothy High
Page
13
xiContents Understand.the.Impact.of.Change.. . . . . . . . . . . . . . . . 134 Doug Crawford You.Have.to.Understand.Hardware,.Too. . . . . . . . . . . . . 136 Kamal Wickramanayake Shortcuts.Now.Are.Paid.Back.with.Interest.Later. . . . . . . 138 Scot Mcphee “Perfect”.Is.the.Enemy.of.“Good.Enough”.. . . . . . . . . . . 140 Greg Nyberg Avoid.“Good.Ideas”. . . . . . . . . . . . . . . . . . . . . . . . . . 142 Greg Nyberg Great.Content.Creates.Great.Systems. . . . . . . . . . . . . . 144 Zubin Wadia The.Business.Versus.the.Angry.Architect. . . . . . . . . . . . 146 Chad LaVigne Stretch.Key.Dimensions.to.See.What.Breaks. . . . . . . . . . 148 Stephen Jones If.You.Design.It,.You.Should.Be.Able.to.Code.It. . . . . . . . 150 Mike Brown A.Rose.by.Any.Other.Name.Will.End.Up.As.a.Cabbage. . . 152 Sam Gardiner Stable.Problems.Get.High-Quality.Solutions. . . . . . . . . . 154 Sam Gardiner It.Takes.Diligence.. . . . . . . . . . . . . . . . . . . . . . . . . . . 156 Brian Hart
Page
14
xii Contents Take.Responsibility.for.Your.Decisions. . . . . . . . . . . . . . 158 Yi Zhou Don’t.Be.Clever. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 Eben Hewitt Choose.Your.Weapons.Carefully,.Relinquish.Them.. Reluctantly.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162 Chad LaVigne Your.Customer.Is.Not.Your.Customer.. . . . . . . . . . . . . . 164 Eben Hewitt It.Will.Never.Look.Like.That. . . . . . . . . . . . . . . . . . . . . 166 Peter Gillard-Moss Choose.Frameworks.That.Play.Well.with.Others.. . . . . . . 168 Eric Hawthorne Make.a.Strong.Business.Case. . . . . . . . . . . . . . . . . . . . 170 Yi Zhou Control.the.Data,.Not.Just.the.Code. . . . . . . . . . . . . . . 172 Chad LaVigne Pay.Down.Your.Technical.Debt. . . . . . . . . . . . . . . . . . . 174 Burkhardt Hufnagel Don’t.Be.a.Problem.Solver.. . . . . . . . . . . . . . . . . . . . . 176 Eben Hewitt Build.Systems.to.Be.Zuhanden. . . . . . . . . . . . . . . . . . . 178 Keith Braithwaite Find.and.Retain.Passionate.Problem.Solvers. . . . . . . . . . 180 Chad LaVigne
Page
15
xiiiContents Software.Doesn’t.Really.Exist.. . . . . . . . . . . . . . . . . . . 182 Chad LaVigne Learn.a.New.Language. . . . . . . . . . . . . . . . . . . . . . . . 184 Burkhardt Hufnagel You.Can’t.Future-Proof.Solutions. . . . . . . . . . . . . . . . . 186 Richard Monson-Haefel The.User.Acceptance.Problem. . . . . . . . . . . . . . . . . . . 188 Norman Carnovale The.Importance.of.Consommé. . . . . . . . . . . . . . . . . . . 190 Eben Hewitt For.the.End.User,.the.Interface.Is.the.System.. . . . . . . . . 192 Vinayak Hegde Great.Software.Is.Not.Built,.It.Is.Grown.. . . . . . . . . . . . . 194 Bill de hÓra Index.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
Page
16
(This page has no text content)
Page
17
xv SoFTWARE ARCHiTECTS occupy a unique space in the world of IT. They are expected to know the technologies and software platforms on which their organizations run as well as the businesses that they serve. A great software architect needs to master both sides of the architect’s coin: business and tech- nology. This is no small challenge, and it’s why this book was created. 97 Things Every Software Architect Should Know provides advice from software architects around the world on everything from how to avoid common pitfalls to how to build talented teams. It’s a smorgasbord of advice from established software architects for other software architects or those who aspire to become software architects. It’s my sincere hope that this book will be a source of inspiration and guidance for software professionals everywhere. It’s also my hope that software archi- tects will use this book and its sister website to share advice and insights into what is perhaps the most challenging profession in information technology today. This book is probably completely different from any other book you’ve read. It is the combined work of more than four dozen authors, all of whom donated their thoughts and advice about software architecture without compensation. It is, in a way, an open source book in the truest sense. Each author wrote his or her own contributions, those contributions were examined and edited with the author, and then the best contributions were chosen for publication. That’s not much different than an open source software project where individuals contribute code rather than knowledge and wisdom. Preface
Page
18
xvi Preface Permissions The licensing of each axiom is also similar to open source. Every contribution is freely available online and licensed under Creative Commons, Attribution 3, which means that you can use the individual contributions in your own work as long as you give credit to the original author. Other open source books have been tried and have, with only a few exceptions, failed. I believe that is because it’s harder for individuals to contribute to a project unless it can be modularized. This book succeeds for exactly that reason: it is modularized. Each contribution is self-contained and works both in this larger collection and on its own. How to Contact Us Please address comments and questions concerning this book to the publisher: O’Reilly Media, Inc. 1005 Gravenstein Highway North Sebastopol, CA 95472 800-998-9938 (in the United States or Canada) 707-829-0515 (international or local) 707-829-0104 (fax) On the web page for this book, we list errata and any additional information. You can access this page at: http://www.oreilly.com/catalog/9780596522698/ The companion website for this book, where you can find all the axioms and full-length contributor biographies, is available at: http://97-things.near-time.net To comment or ask technical questions about this book, send email to: bookquestions@oreilly.com For more information about our books, conferences, Resource Centers, and the O’Reilly Network, see our website at: http://www.oreilly.com/
Page
19
xviiPreface Safari® Books Online When you see a Safari® Books Online icon on the cover of your favorite technology book, that means the book is avail- able online through the O’Reilly Network Safari Bookshelf. Safari offers a solution that’s better than e-books. It’s a virtual library that lets you easily search thousands of top tech books, cut and paste code samples, download chapters, and find quick answers when you need the most accurate, current information. Try it for free at http://safari.oreilly.com. Acknowledgments The idea for 97 Things Every Software Architect Should Know was not con- ceived in a vacuum. There are many people who deserve credit for the idea and execution. In order, I would like to thank Jay Zimmerman, who suggested that I do a presentation for the No Fluff, Just Stuff symposiums called “10 Things Every Software Architect Should Know”; Bruce Eckel, for managing the mail- ing list on which the idea for this book was germinated; Jeremy Meyer, for suggesting that I create a book out of what was going to be a simple slide show; Nitin Borwankar, who suggested doing a public wiki so that everyone can be involved; and the members of Bruce’s mailing list who, on nothing more than a promise, chose to donate their time and contribute the first axioms to this book. I also want to thank the dozens of software architects who worked hard to contribute to this book but whose contributions are not included. It was extremely hard to choose which axioms should be a part of this work. I’m deeply grateful to everyone who contributed content, whether it was included or not. O’Reilly deserves credit as well for listening to this idea with open ears and backing what is more or less an untested method of creating a book. O’Reilly also deserves credit for agreeing that all content will be open source (Cre- ative Commons, Attribution 3) and that the content will be available for free to anyone on the website. People at O’Reilly I would like to thank specifically include Mike Loukides, Mike Hendrickson, Laura Painter, and Laurel Acker- man. Without your help and guidance, this project would not be possible.
Page
20
xviii Preface We (O’Reilly and I) are developing other “97 Things” projects. The idea is to create a new and unique series that leverages the collaborative intelligence of experts in every field that is practical. Project management, software develop- ment, and data architecture are just a few of the other topics we are already pursuing. I hope you will find the contents of this book inspiring and that you will be inspired to contribute your own axioms to future projects! All the best! —Richard Monson-Haefel Series Editor, 97 Things