A place to cache linked articles (think custom and personal wayback machine)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 5 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. title: Meditation Driven Development
  2. url: http://www.ckwop.me.uk/Meditation-driven-development.html
  3. hash_url: 28d1831edaec0fd821959314a0a22644
  4. <div class="LargeBlogImage">
  5. <img src="http://www.ckwop.me.uk/images/Meditation.jpg" alt="A silhouette of a person meditating."/>
  6. </div>
  7. <h3>In the beginning</h3>
  8. <p>
  9. Tim is a veteran programmer. He works at a world renowned software company. Despite this, in his long career he has seen many projects fail
  10. and only a few succeed. After 15 years developing software, he decides he wants to get out of the trenches and start managing projects.
  11. He's tired of seeing projects fail for entirely preventable reasons. He realises that the only way to fix these things is to be the
  12. guy who makes the decisions on these wayward projects.
  13. </p>
  14. <p>
  15. Tim, like most developers, is quite a eccentric man. He is an open source enthusiast and he has written a great variety of open-source software. Before writing any code on his projects, he usually
  16. spends an hour doing yoga followed by intense meditation. After doing his meditation he finds that he writes cleaner, better designed code.
  17. </p>
  18. <p>
  19. One day, he is meditating when it strikes him: "Maybe this is the solution to the <a href="http://en.wikipedia.org/wiki/Software_crisis">software crisis</a>,
  20. everyone needs to meditate before they write a line of code." Meditation Driven Development (MDD) was born.
  21. </p>
  22. <p>
  23. Tim goes to work and tells his team about his new methodology. Being good friends of Tim they decide to give it a try! Tim waits patiently
  24. for a project that he can try it out on.
  25. </p>
  26. <h3>The first project</h3>
  27. <p>
  28. It's day one of the implementation phase of the project. Tim rides his bicycle to work with extra-gumption.
  29. "Today will be the start of something great," he says to himself.
  30. </p>
  31. <p>
  32. It's 9 AM and it's time of the first team meeting. Tim asks everyone to sit around on the floor in a circle and
  33. reflect deeply on a particular passage from the Bible. At first, his team are uncomfortable. They're unsure of what
  34. to do, but under Tim's careful direction he manages to get a result. His team manages a 45 minute meditation and
  35. afterwards they're energized and ready to write great code.
  36. </p>
  37. <p>
  38. Tim mandates that all the team members must meditate twice a day, once when they come to work and once when they return from lunch.
  39. Each meditation session will be no shorter than 45 minutes long. This will be done without fail, every single day of the project.
  40. </p>
  41. <p>
  42. The project was scheduled to last three months but Tim's team was done two weeks early. Not only that, his team's
  43. software contained 20% fewer bugs than the company average. Tim concluded that MDD must have been responsible. "MDD WORKS," Tim exclaimed!
  44. </p>
  45. <h3>Spreading the gospel</h3>
  46. <p>
  47. Given his early successes, Tim decides to roll out MDD across all his projects. His early successes were repeated.
  48. His boss is impressed and asks why he thinks his projects are enjoying so much success. For Tim, the answer is
  49. obvious: "MDD. MDD allows us to produce higher quality software, to budget, on time."
  50. </p>
  51. <p>
  52. Tim convinces his boss that the whole company should use MDD. Tim sends out his disciples to other
  53. teams to convert them to MDD. Slowly but surely his company converts to MDD.
  54. </p>
  55. <p>
  56. Tim realises that other people could benefit from MDD, so he makes a deal with O'Reilly and writes his transformational book,
  57. "Meditation Driven Development - The way to cheaper, more reliable software."
  58. </p>
  59. <p>
  60. The initial reaction is positive. Before long, a line of people are queueing up at Tim's door to get in on on the new
  61. MDD craze sweeping the industry.
  62. </p>
  63. <h3>The MDD Manifesto</h3>
  64. <p>
  65. A year or two after Tim's book on MDD, it was clear that MDD was being misapplied in some companies. Some teams were
  66. having trouble making MDD work in their company. Some people were not following the strictures of the book correctly.
  67. </p>
  68. <p>
  69. They were having 20 minute meditations instead of the mandated minimum of 45 and they were only having one of these per day! Tim exclaimed,
  70. "How could they possibly expect the methodology to work when they're only doing one meditation per day!?" Something needed to be done.
  71. </p>
  72. <p>
  73. By this point MDD had fractured in to a series of closely related but slightly different methodologies. Some preferred to meditate to
  74. music, other liked to meditate on the words of famous poems. Others preferred four shorter sessions per day instead of the original two.
  75. The differences mattered less than the similarities. As long as there was an hour and a half of meditation per day, every day, it was MDD.
  76. </p>
  77. <p>
  78. Tim and his disciples sat down and bashed out a manifesto that bound these various strains of MDD under a common political philosophy.
  79. They vowed to take forth the central message of MDD and transform the industry.
  80. </p>
  81. <h3>MDD becomes mainstream</h3>
  82. <p>
  83. It's now nearly a decade after Tim wrote his transformational book. Once a year he keynotes at "MDD-con" in San Diego.
  84. He has released a series of books on the subject and makes a substantial amount of money in consulting on everything and
  85. anything related to MDD.
  86. </p>
  87. <p>
  88. MDD is now an established cottage-industry with a series of satellite conferences spanning the globe. It's now so
  89. popular that even the pointiest of pointy-haired bosses is starting to hear about it.
  90. </p>
  91. <p>
  92. Yet, all is not well in the MDD community. Ordinary companies are having real trouble getting the benefits of MDD.
  93. Projects are still late, expensive and buggy. Tim's career has become a continual fire-fight. His consultancy gigs
  94. are no longer about getting people to adopt MDD but are about fixing problems in projects that already use MDD!
  95. </p>
  96. <h3>MDD fifteen years on</h3>
  97. <p>
  98. It is now over fifteen years since Tim wrote his award winning book. MDD is now thoroughly mainstream and
  99. used by a huge variety of teams. Despite Tim's initial success, MDD projects on average tend to be late,
  100. over-budget and low quality.
  101. </p>
  102. <p>
  103. Tim still extols the merits of MDD but he finds dissatisfaction wherever he goes. A whole
  104. generation of programmers has now grown up with MDD and they're disillusioned by failed project after failed project.
  105. Tim can't understand why people were having such a bad time with MDD. He just <em>knows</em> that MDD works! He's seen it with his own eyes!
  106. In his own mind, he concludes that the problem must be that nobody is doing it right!
  107. </p>
  108. <p>
  109. One day, Tim comes across a team led by a bright-eyed manager called Cathy. Cathy's projects are on time,
  110. to budget and much less buggy than the company average. Cathy was a developer for fifteen years and has only recently become
  111. a manager. Tim is suitably impressed by her success, he asks her what her secret is:
  112. </p>
  113. <p>
  114. "It's our new methodology, QDD. QDD allows us to produce higher quality software, to budget, on time. It's going to <em>transform</em>
  115. our industry."
  116. </p>
  117. <h3>Afterword</h3>
  118. <p>
  119. Why did MDD work at first and then fail when it became mainstream? The reason that MDD worked initially had nothing to do with
  120. strictures of MDD. Tim was a talented developer working in a company filled with talented developers. Pretty much any methodology
  121. you care to think of was going to work with these people.
  122. </p>
  123. <p>
  124. Moreover, Tim's initial team were the earliest of early adopters hand-picked by Tim himself. They were the very people that would develop high
  125. quality software naturally anyway. The only role the MDD had was in helping the team to gel, and once they had they looked like an impossibly
  126. productive team. Tim misidentified the source of this productivity as being the result of his methodology, rather than his
  127. competence of himself and his team.
  128. </p>
  129. <p>
  130. As MDD became more widely used, the average quality of the developers using the methodology dropped and so did the success rate of using MDD. By
  131. the time it was used by the average team, MDD got average results.
  132. </p>
  133. <p>
  134. I'll close with a quote from one of the greats of our field, Robert Glass:
  135. </p>
  136. <blockquote>
  137. <p>People matter in building software. That's the message of this particular fact. Tools matter. Techniques also matter. Process, yet again, matters. But head and shoulders above all those other things that matter are people.</p>
  138. <p>This message is as old as the software field itself. It has emerged from, and appears in, so many software research studies and position papers over the years that, by now, it should be one of the most important software "eternal truths." Yet we in the software field keep forgetting it. We advocate process as the be-all and end-all of software development. We promote tools as breakthroughs in our ability to create software. We aggregate miscellaneous collections of techniques, call that aggregate a methodology, and insist that thousands of programmers read about it, take classes in it, have their noses rubbed in it through drill and practice, and then employ it on high-profile projects. All in the name of tools/techniques/process over people.</p>
  139. </blockquote>
  140. <p>
  141. Don't fall in to Tim's trap. Great developers create great software not because they follow the strictures of some methodology but because they
  142. are truly great, gifted artisans.
  143. </p>