Testing and Refactoring Legacy Code
In this video, we take a piece of crappy Java code with no tests. Our objective is to write tests for it and then refactor to make it better. The code has the most common problems that much larger legacy applications have, like Singletons, static calls and feature envy. It also has some design problems. Fixing that is quite hard, mainly when we need to write all the tests before we start the refactoring. Another rule: We cannot change production code if it is not covered by tests but quite often we need to change the production code in order to be able to test it. How to solve this problem? Well, I hope I can answer all these questions in this video.
If you want to know more about Software Craftsmanship, please check my book: https://leanpub.com/socra
If you want to play with the code, clone it from: https://github.com/sandromancuso/trip-service-kata
Видео Testing and Refactoring Legacy Code канала Sandro Mancuso
If you want to know more about Software Craftsmanship, please check my book: https://leanpub.com/socra
If you want to play with the code, clone it from: https://github.com/sandromancuso/trip-service-kata
Видео Testing and Refactoring Legacy Code канала Sandro Mancuso
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Code Refactoring: Learn Code Smells And Level Up Your Game!](https://i.ytimg.com/vi/D4auWwMsEnY/default.jpg)
![Martin Fowler @ OOP2014 "Workflows of Refactoring"](https://i.ytimg.com/vi/vqEg37e4Mkw/default.jpg)
![Outside-In Classicist TDD by Sandro Mancuso - Mars Rover](https://i.ytimg.com/vi/24vzFAvOzo0/default.jpg)
![Uncle Bob Martin - The Clean Coder](https://i.ytimg.com/vi/NeXQEJNWO5w/default.jpg)
![Testing with Jest: From zero to hero](https://i.ytimg.com/vi/NHMIn723hQY/default.jpg)
![Mars Rover by Idowu Akinde - C# Coding Challenge Series](https://i.ytimg.com/vi/dEq1CslHkZs/default.jpg)
![Testing and Refactoring Legacy Code](https://i.ytimg.com/vi/LSqbXorkyfQ/default.jpg)
![Practical Refactoring - How to clean code in many small steps](https://i.ytimg.com/vi/aWiwDdx_rdo/default.jpg)
![Switching to TypeScript](https://i.ytimg.com/vi/MQB4zabVHZY/default.jpg)
![The Art of Code - Dylan Beattie](https://i.ytimg.com/vi/6avJHaC3C2U/default.jpg)
![Effective Unit Testing by Eliotte Rusty Harold](https://i.ytimg.com/vi/fr1E9aVnBxw/default.jpg)
![Refactoring Some C# Legacy Code for Unit Testing with Roy Osherove](https://i.ytimg.com/vi/o9ClnV_MKzE/default.jpg)
![Укрощая зверя: legacy-код, тесты и вы / Кирилл Борисов (Booking.com)](https://i.ytimg.com/vi/H4Mp2BSffSM/default.jpg)
![Solving Gilded Rose Kata (No Nesting) | Refactoring Challenge #2](https://i.ytimg.com/vi/5oAs5Jr5njU/default.jpg)
![Migrating a Monolithic Application to Microservices (Cloud Next '19)](https://i.ytimg.com/vi/_azoxefUs_Y/default.jpg)
![Testing Legacy Code: Safe Refactoring - Katy Ereira - PHP UK 2020](https://i.ytimg.com/vi/U5BkMJpv_ZQ/default.jpg)
![CODE ROAST: Yahtzee - New Python code refactoring series!](https://i.ytimg.com/vi/l7E3y4te7sA/default.jpg)
![Step by Step Guide - VS Code for Spring Boot Java Development](https://i.ytimg.com/vi/uq4GjRF_860/default.jpg)
![4 Steps from JavaScript to TypeScript - Phil Nash - NDC Melbourne 2021](https://i.ytimg.com/vi/_EjuTp81SYQ/default.jpg)
![Refactoring JavaScript](https://i.ytimg.com/vi/PFAYpbOXo94/default.jpg)