I’d rather read 50 lines than Extract Method Refactoring
Extract Method refactoring is a great way to give names to concepts so code is easier to read and flows. But it can go wrong when you use it, creating a lot of indirection and unexpected behavior from the methods you extract. YouTube Check out my YouTube channel, where I post all kinds of content accompanying my posts, including this video showing everything in this post. I want to dive into a topic that’s been on my mind: refactoring, specifically the “Extract Method” technique. TLDR: I’d rather read a longer method—maybe around 50 lines—than get tangled up in a web of indirection… Read More »I’d rather read 50 lines than Extract Method Refactoring