Code Cast: Legacy Coderetreat Episode 9 - Extract Pure Functions [Java]

preview_player
Показать описание
We already have some tests running and we want to have methods that do only one thing; we want to apply the Single Responsibility Principle. A really good tool that can help is using pure functions. We extract functions, make them static and then make sure the function does not have any side effects. These functions help me clean the code and help me start structurig the code according to clear responsibilities.

Programming Language: Java
Рекомендации по теме