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