Live-Refactoring a realistic codebase

Publicado em: 01 Janeiro 1970
no canal de: Victor Rentea
8,456
247

There are many brilliant refactoring katas out there (e.g. https://kata-log.rocks/), each aiming to expose the software crafter to various design decisions ranging from the tiniest change to extensive changes in design, that you ough to break in safe baby steps. However, these katas often lack that "feeling of reality" - you'd never expect to find code looking like that in a real-life project today.

The exercise I propose to you here is a raw (anonymized) code sample I recently saw at a client during a Clean Code workshop. No tests, no spec. We found ourselves discussing hours on that code, with very little need for more information, and I'd like to try it out with you folks.

Check the code out, and try to give it a run before the event:

https://github.com/victorrentea/kata-....

Topics on the menu:
Immutability
Split Loops
Reducing Cognitive Complexity
DRY principle
Abuse of FP-style coding without adopting the FP mindset
Command-Query separation
Naming
Coupling

Format: I will type and debate topics with the audience, asking you how to proceed further. So you'll be in control :)

Although the code is in Java, the discussion will be generally applicable to most languages (C#, PHP, TS, Kotlin..)

About the speaker (entertainer):

Victor Rentea is a Java Champion, Consultant, and Trainer writing code since 2006. His passion is Refactoring, Simple Design, and Unit Testing, about which he regularly talks at top conferences, but also to the Bucharest Software Craftsmanship Community that he founded. On victorrentea.ro you can find his blog, selection of his best talks, training curriculum, live masterclasses, and social channels.


Nesta página do site você pode assistir ao vídeo on-line Live-Refactoring a realistic codebase duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Victor Rentea 01 Janeiro 1970, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 8,456 vezes e gostou 247 espectadores. Boa visualização!