Live Stream Recording: Testing and Refactoring Legacy Code
Those who couldn’t join us for our show can catch up by watching the recording on our YouTube channel.
Sandro Mancuso’s first startup project was the canvas for our testing and refactoring practices during the IntelliJ IDEA December Live Stream.
Sandro took us on a nostalgic tour through the 20-year-old codebase. Years ago, Sandro implemented his first startup idea, a social network for travelers, and spent a full year on development. After a long break, Sandro decided to dive back into the project to refresh his memory and show us how to work with legacy code.
We learned the general rules of refactoring and testing, and Sandro showed us many essential tips, like which debugging methodology to choose, how to navigate the code’s landscape, and how to implement the SEAM technique.
The goal was to achieve 100% test coverage and then refactor it – and we did it all in under 90 minutes!
He also shared his insights on being more productive and building self-confidence while working with code.
Thanks to our guest, the live stream served as a very practical workshop. If you are eager to learn more, check out Sandro’s katas on GitHub. During the session, Sandro mentioned the book Working Effectively with Legacy Code by Michael Feathers. If you don’t have it on your bookshelf, you should give it a try!
Keep testing and refactoring, and we’ll see you at the live stream next month!
Your presenter and host
Subscribe to Blog updates
Java Best Practices
Good code follows certain rules, and knowing them increases your chances of success. We’d like to share some Java best practices that will help you on your way. We'll cover the must-know tips and tricks, from broad advice on software development to Java- and project-specific know-how. Let's get star…
The New Terminal (Beta) Is Now in JetBrains IDEs
The new terminal (Beta) is now in JetBrains IDEs and will be available in the new UI starting from the 2024.1 version of the IDEs.
‘HelloWorld’ and ‘main()’ meet minimalistic
"Just ignore the terms class, public, static and arg for now; we'll talk about it later". If you have ever mentioned these lines to a new Java student, who is about to execute their first 'HelloWorld' program, know that this is changing. If you are that student, well, congratulations, getting starte…
Easy Hacks: How To Implement Polymorphism in Java
Polymorphism is the ability of an object to take on different forms. In programming, this means that a variable or a method can have different behaviors depending on the type of object it represents. While the term may sound intimidating to beginners, polymorphism is a powerful tool: it helps you re…