Live-Refactoring a realistic codebase

Publicado el: 01 enero 1970
en el 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.


En esta página del sitio puede ver el video en línea Live-Refactoring a realistic codebase de Duración hora minuto segunda en buena calidad , que subió el usuario Victor Rentea 01 enero 1970, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 8,456 veces y le gustó 247 a los espectadores. Disfruta viendo!