DEV Community

Discussion on: Refactoring Legacy Monoliths - Part 3: Game Plan And Refactoring Tips

Collapse
 
simonhaisz profile image
simonhaisz

Nice summary of the core approaches for safe refactoring. Dependency injection is such a huge part of that. It's almost like adding a layer of abstraction is a core method of solving problems...

I'm glad you brought up Working Effectively With Legacy Code and Michael's point about trust. We've done a few book club groups on his book and we've found it to be quite useful. For those that are reading this article but haven't read the book I really recommend it. Not all of the chapters may apply to you (the C/C++ macro sections aren't going to help much for the JS crowd) but thankfully the more specialized partsare well defined so it should be easy for you to figure out what chapters to skip.

Collapse
 
jamesmh profile image
James Hickey

Thanks for the feedback! I really enjoy that book. It covers so much ground and is super practical.