Slide 1

Slide 1 text

BIG REWRITE STRIKES AGAIN Sabrina Leandro @saleandro The Lead Developer UK 2017

Slide 2

Slide 2 text

Lessons from Big rewrite projects

Slide 3

Slide 3 text

BIG REWRITE STRIKES AGAIN

Slide 4

Slide 4 text

This talk • The problem • How to start it • How to run it • How to finish it • How to not need it again!

Slide 5

Slide 5 text

The problem Stop me if you think you’ve heard this one before

Slide 6

Slide 6 text

Software Entropy

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

How to start it

Slide 9

Slide 9 text

•Is it the right time? •Is it the right reason?

Slide 10

Slide 10 text

Product discovery Is it the right time?

Slide 11

Slide 11 text

Product discovery Product delivery Is it the right time?

Slide 12

Slide 12 text

Is it the right time? Yes, if the product has a clear business value today.

Slide 13

Slide 13 text

What difference does it make? Is it the right reason?

Slide 14

Slide 14 text

•Do you have a business case?
 


Slide 15

Slide 15 text

•Do you have a business case? •Can you explain it to anyone in your organisation?

Slide 16

Slide 16 text

Is it the right reason? Yes, if there’s one clear business case.

Slide 17

Slide 17 text

PLEASE PLEASE PLEASE Let me get what I want

Slide 18

Slide 18 text

Have one clear business case How to sell it

Slide 19

Slide 19 text

How to sell it Show what a great new world 
 it will be!

Slide 20

Slide 20 text

How to sell it Find allies outside of your team

Slide 21

Slide 21 text

Make the pain visible How to sell it

Slide 22

Slide 22 text

How to sell it Do Repeat Yourself

Slide 23

Slide 23 text

How to sell it Do Repeat Yourself Do Repeat Yourself

Slide 24

Slide 24 text

How to run it

Slide 25

Slide 25 text

Technical vision and strategy Now The future!

Slide 26

Slide 26 text

Now The future! Technical vision and strategy

Slide 27

Slide 27 text

Technical approaches

Slide 28

Slide 28 text

Now Bright future! Team 2: Building new application Rewrite from scratch Legacy application Team 1: Maintaining legacy application New New application New application VALUE! Legacy application Legacy application

Slide 29

Slide 29 text

Now Bright future! Team 2: Building new application Rewrite from scratch Legacy application Team 1: Maintaining legacy application New New application New application VALUE! Legacy application Legacy application Legacy application

Slide 30

Slide 30 text

The strangler application

Slide 31

Slide 31 text

Now Bright future! Team 1: Maintaining legacy and building new application New application Rewrite using strangler approach

Slide 32

Slide 32 text

Now Bright future! Team 1: Maintaining legacy and building new application New application VALUE! Rewrite using strangler approach

Slide 33

Slide 33 text

“ Deleting is faster than rewriting.

Slide 34

Slide 34 text

Bones Muscle Fat Cut features to move faster

Slide 35

Slide 35 text

“ If we were starting over, what would we build today, knowing what we know now?

Slide 36

Slide 36 text

1) Find the biggest blocker 2) Remove it completely 3) Repeat What to do first?

Slide 37

Slide 37 text

During the project

Slide 38

Slide 38 text

How to run it Show internal progress

Slide 39

Slide 39 text

How to run it Celebrate your successes!

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

That joke isn’t funny anymore… How to run it Do Repeat Yourself, again

Slide 45

Slide 45 text

How to finish it I started something I couldn’t finish

Slide 46

Slide 46 text

These things 
 take time How to finish it

Slide 47

Slide 47 text

How to not need it again

Slide 48

Slide 48 text

Software Entropy

Slide 49

Slide 49 text

How to not need it again Make the cost visible

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

DELETE CODE FEATURES PRODUCTS

Slide 52

Slide 52 text

“ If we were starting over, what would we build today, knowing what we know now?

Slide 53

Slide 53 text

How to not need it again Make it part of your day-to-day

Slide 54

Slide 54 text

“ A refactor a day keeps the rewrite away!

Slide 55

Slide 55 text

How to not need it again Get used to inconsistencies

Slide 56

Slide 56 text

How to not need it again Promote a culture of collaboration

Slide 57

Slide 57 text

Technical migrations Continuously deliver value Delete what’s not valuable One business goal

Slide 58

Slide 58 text

Sustainable Software Make maintenance cost visible Learn and collaborate Refactor a little bit and often

Slide 59

Slide 59 text

Bigmouth Strikes Again This Charming Man Stop Me If You Think You’ve Heard This One Before What Difference Does It Make? Please, Please, Please, Let Me Get What I Want That Joke Isn’t Funny Anymore I Started Something I Couldn’t Finish These Things Take Time Sheila Take A Bow Thanks! Sabrina, take a bow… [email protected] @saleandro

Slide 60

Slide 60 text

References Songkick.com rewrite • https://devblog.songkick.com/the-path-to-soa-d986a18d4a8b • https://devblog.songkick.com/our-object-based-rails-frontend-3e2ddc048d12 • https://www.youtube.com/watch?v=-VEf8j6aGMk • https://www.martinfowler.com/bliki/StranglerApplication.html Celebrate your successes • https://medium.com/@Songkick/gamify-your-product-team-to-power-level-9000-261e9fceaa22 Hoarders metaphor / Liveable code • https://twitter.com/sarahmei/status/783115752794492928 • https://www.youtube.com/watch?v=mz3l_oEA2cU • https://twitter.com/kentbeck/status/856537528886673408 Product discovery and product delivery • http://jpattonassociates.com/dual-track-development/ • https://martinfowler.com/bliki/DesignStaminaHypothesis.html • https://www.facebook.com/notes/kent-beck/teams-in-3x/1244519748914220/

Slide 61

Slide 61 text

References Make the cost visible • http://codemanship.co.uk/parlezuml/blog/?postid=1433 • http://blogs.msdn.com/b/elee/archive/2009/03/11/source-code-is-a-liability-not-an- asset.aspx Make it part of your day-to-day • https://martinfowler.com/bliki/OpportunisticRefactoring.html • http://ronjeffries.com/xprog/articles/refactoring-not-on-the-backlog/ • http://firstround.com/review/forget-technical-debt-heres-how-to-build-technical-wealth/ • https://www.infoq.com/presentations/microservices-replaceability-consistency • https://www.sandimetz.com/blog/2017/6/1/the-half-life-of-code • https://www.infoq.com/presentations/remove-unneeded-code Playlist :) • https://open.spotify.com/user/saleandro/playlist/6i3RVHtys4djlYlLLGZc26