Hacker News new | ask | show | jobs
by abhirakshit 5861 days ago
I know that methods and classes mutate and their functionalities change over time. And the day it 'strikes you :)' that it has become gnarly it is time to refactor. How you proceed to do that is a different issue.

Personally I haven't come across a set of guidelines having more in-depth solution than what I have tried to mentioned here which works in all cases. It is a question quite dependent on the type of project you are working on. I think the best person who can properly direct you is the Architect or somebody with experience who knows the project thoroughly.

1 comments

In wondering about the funky nature of this problem, it occurred to me that it is an exercise in taxonomy.

    "There are only two hard problems in Computer Science: 
     cache invalidation and naming things."
     --  Phil Karlton

Coupling and coherence are essentially about naming things, about identifying the core nature of something.