W jax wenn-code altert
-
date post
21-Oct-2014 -
Category
Technology
-
view
3.362 -
download
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+lin
es of code

?2M+lin
es of code

?lostoverview
lines of code

Bath Tub Curve Hardware

Bath Tub Curve Software

Bath Tub Curve Software

gree
nField

grün
e Wiese
How long does it take?
8 hours
We need it in 6!
OK, I‘ll do it in 4!
no Tests!



more cooks!

...spoil the broth
too many cooks...

REWRITE


REWRITE

WindowsBroken



the Engines Don‘t stop

no Plan BThere is
THE SCRUM MASTER
THE DEVELOPER
THE MANAGER

Boy Scout Rule
Leave the campground cleaner than you found it.

TheToolchain


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 Don‘t repeat yourself
KISS - Keep it simple, stupid
Favour Composition over InheritanceRoot Cause Analysis
Single Level of Abstraction
Seperation of ConcernsYou Ain‘t Gonna Need It

Clean CodeDeveloper
von Stefan Lieser &Ralf Westphalclean-code-developer.de

Clean CodeDeveloper&
Evolve




@svenpet
Sven PetersAtlassian