W jax wenn-code altert

  • Published on
    21-Oct-2014

  • View
    3.348

  • Download
    0

Embed Size (px)

DESCRIPTION

 

Transcript

<p> Wenn Code altertTipps, wie Wartungsprojekte frisch bleiben</p> <p>Sven Peters / Atlassian</p> <p>Sven Peters</p> <p>@svenpetsvenpet.com</p> <p>Ambassador</p> <p>mobro.co/svenpet</p> <p>Experiencemy</p> <p>Disclaimer</p> <p>@svenpetsvenpet.com</p> <p>Nothing has a more profound or long-lasting negative effect on the productivity of a software team than a mess. Nothing.</p> <p>Robert C. Martin</p> <p>? projektMaintenance</p> <p>?5 years</p> <p>?1M+lines of code</p> <p>?2M+lines of code</p> <p>?lostoverviewlines of code</p> <p>Bath Tub Curve Hardware</p> <p>Bath Tub Curve Software</p> <p>Bath Tub Curve Software</p> <p>gree</p> <p>nField</p> <p>grn</p> <p>e Wiese</p> <p>How long does it take?</p> <p>8 hours</p> <p>We need it in 6!</p> <p>OK, Ill do it in 4!</p> <p>no Tests!</p> <p>more cooks!</p> <p>...spoil the broth</p> <p>too many cooks...</p> <p>REWRITE</p> <p>REWRITE</p> <p>WindowsBroken</p> <p>the Engines Dont stop</p> <p>no Plan BThere is</p> <p>THE SCRUM MASTER</p> <p>THE DEVELOPER</p> <p>THE MANAGER</p> <p>Boy Scout Rule</p> <p>Leave the campground cleaner than you found it.</p> <p>The Toolchain</p> <p>readabilityimprove</p> <p>Naming</p> <p>Any fool can write code that a computer can understand. Good programmers write code that humans can understand.</p> <p>Martin Fowler</p> <p>commentno</p> <p>testautomated</p> <p>Code Change Algorithmby Michael C. Feathers</p> <p>Legacy1. Identify Change Points</p> <p>2. Make Changes and Refactor</p> <p>Code Change Algorithmby Michael C. Feathers</p> <p>Legacy1. Identify Change Points</p> <p>5. Make Changes and Refactor</p> <p>2. Find Test Points</p> <p>3. Break Dependencies</p> <p>4. Write Tests</p> <p>Clean Code</p> <p>nterface Segregation Principle</p> <p>pen Closed Principle</p> <p>iskow Substitution Principle</p> <p>ingle Responsible Principle</p> <p>ependency Inversion Principle</p> <p>DRY Dont repeat</p> <p> yourself</p> <p>KISS - Keep it simple, stupid</p> <p>Favour Composition over InheritanceRoot Cause Analysis</p> <p>Single</p> <p> Level o</p> <p>f Abstra</p> <p>ction</p> <p>Seperation of Concern</p> <p>sYou Aint Gonna Need It</p> <p>Clean CodeDeveloper</p> <p>von Stefan Lieser &amp;Ralf Westphalclean-code-developer.de</p> <p>Clean CodeDeveloper&amp;</p> <p>Evolve</p> <p>@svenpet</p> <p>Sven PetersAtlassian</p>