Webinar – Refactor Now or Never
The same popular metaphor of unit-testing – write the test, break it, fix it – can be applied at a higher level of abstraction to improve the average quality of your codebase just as you code.
Got the point of the code you’re going to write? Then write it to see if it fits, ensure it works as it should, fix it and then check-in. Let’s face it! You’d better put any reasonably possible effort in writing code right the first time as you’ll never have realistically the time to clean it later. Write your code as if your peers are violent psychopatics that know where you live. Or, more quietly, write your code as a message to the posterity.
However, nobody writes code right the first time and any code one second after having been written is legacy code. Aim then at having the classiest legacy code ever. There are a number of wrinkles you can iron out in the code and all of them have a fancy name: primitive obsession, oddball solution, large classes, long methods, data clumps just to name a few. Each of them comes with a handful of suggested refactorings that are for the most part battle-tested. No effort and no creativity: it’s simple a matter of will and attitude. This webinar presents a number of code smells with different levels of popularity that once fixed make your code walk closely with the complexity of the business domain it is written for. Any codebase a domain specific codebase, lean, mean and clean.
About the Presenter
Dino Esposito authored quite a few books and articles in a so far 25 years long career and it is commonly recognized that his writing and speaking effort helped the professional growth of thousands of .NET and ASP.NET developers and software architects worldwide. He also has extensive real-world experience on the field, but that’s another story. Dino is on Twitter as @despos.
Subscribe to Blog updates
Boost Code Quality with Qodana and GitHub Actions
It’s been roughly half a year since we introduced Qodana to .NET in our blog post about how to elevate your C# code quality with Qodana. Since then, we’ve been quite busy! Qodana went out of preview and into GA. Furthermore, we greatly improved the integration with our IDEs, providing an effortless …
Critical Thinking in an AI-Powered World
Critical thinking techniques for use with JetBrains AI Assistant.
How To Use AI Assistant to Generate Test Data For .NET Applications
How To Use AI Assistant to Generate Test Data For .NET Applications for better unit tests.