Code Cast: Legacy Coderetreat Episode 11 - Extract Class [Java]

Опубликовано: 27 Сентябрь 2024
на канале: Adrian Bolboaca
148
3

In Episode 10 we saw how The Rule of Three can help us to structure parts of existing code into areas that have something in common.
In Episode 11 you will see how to refactor legacy code by extracting a class. We already have some pure functions extracted from the previous episode. Now it's the moment to find the pure functions that could belong together in a class.
We use The Rule of Three for extracting the class as well.

To read about the technique please see http://blog.adrianbolboaca.ro/2015/02...

Programming Language: Java