OMG! Jakie piękne legacy Paweł Lewtak @pawel_lewtak

Code without tests Michael Feathers

Nobody sets out to write legacy code Rachel Willmer

Legacy != Twój wróg

Jeśli patrzysz na swój kod sprzed pół roku i nie wiesz co można w nim poprawić, to znaczy że niczego się nie nauczyłeś przez ostatnie pół roku.

Efekt Motyla

Brak testów

Brak dokumentacji

Twój kod = Twoja odpowiedzialność

Przepisać czy poprawić?

Przepisanie od zera

Refactoring

Plan

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

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

Zasada Pareto

Metoda Mikado

Strangler pattern

Podróż tysiąca mil zaczyna się od jednego kroku Konfucjusz

Remember, code is your house, and you have to live in it. Michael Feathers

Rekomendacje

dziękuję

Credits https://pixabay.com/vectors/test-pattern-tv-tv-test-pattern-152459/ https://pixabay.com/photos/villa-house-gloomy-dark-old-villa-3237114/ https://unsplash.com/photos/FFn2-TW8pxk https://unsplash.com/photos/wah9pnO9G6k https://pixabay.com/photos/peacock-butterfly-butterfly-insect-1655724/ https://www.pexels.com/photo/black-and-white-close-up-eyeball-eyebrow-2011311/ https://pixabay.com/photos/ethics-right-wrong-ethical-moral-2991600/ https://pixabay.com/photos/mikado-play-wooden-sticks-742769/ https://pixabay.com/photos/jungle-strangler-tree-695208/ https://www.pexels.com/photo/mosaic-alien-on-wall-1670977/ https://pixabay.com/photos/learn-student-laptop-internet-3653430/ https://www.pexels.com/photo/cheerful-close-up-coffee-cup-208165/