Dlaczego legacy nie jest takie straszne i jak je pokochać?

A presentation at DynamIT in August 2019 in Kraków, Poland by Paweł Lewtak

Slide 1

Slide 1

Dlaczego legacy nie jest straszne i jak je pokochać? Paweł Lewtak @pawel_lewtak

Slide 2

Slide 2

Slide 3

Slide 3

Legacy: code without tests Michael Feathers

Slide 4

Slide 4

Nobody sets out to write legacy code Rachel Willmer

Slide 5

Slide 5

Źródło: https://philippe.bourgau.net/a-serious-game-for-learning-built-inquality-at-the-source/

Slide 6

Slide 6

Legacy != Twój wróg

Slide 7

Slide 7

Twój kod == Twoja odpowiedzialność

Slide 8

Slide 8

Slide 9

Slide 9

Slide 10

Slide 10

Przepisać czy poprawić?

Slide 11

Slide 11

We’re programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. Joel Spolsky

Slide 12

Slide 12

When we refactor, we should have tests. To put tests in place, we often have to refactor. Michael Feathers

Slide 13

Slide 13

Refaktoryzuj jeśli to możliwe. Przepisz jeśli nie masz wyjścia.

Slide 14

Slide 14

Zasada Pareto

Slide 15

Slide 15

Metoda Mikado

Slide 16

Slide 16

Strangler pattern

Slide 17

Slide 17

Slide 18

Slide 18

10 lat doświadczenia to nie to samo co rok doświadczenia powtórzony x10

Slide 19

Slide 19

Rekomendacje

Slide 20

Slide 20

Slide 21

Slide 21

dziękuję