How do you refactor a God class?
It’s like Jenga. You will need patience and a steady hand, otherwise you have to recreate everything from scratch. Which is not bad, per se – sometimes one needs to throw away code. Other advice: Think before pulling out methods: on what data does this method operate? What responsibility does it have? Try to maintain … Read more