Refactoring that sucks is part of the coding, so you don’t have to approve anyone if your manager doesn’t keep track of your code and watch VERY closely. . The time that I keep refactoring today is the time that I don’t need to do the count, doing crazy tricks to get the normal code to work tomorrow (and it will, in the end).
Interrupting methods into smaller methods and removing methods that are not used are part of your job. Reducing database calls in the code you call is also necessary so that your code does not suck. Again, not really refactoring, just normal coding.
The conviction of your manager depends on other factors, including (but not limited to) their willingness to be convinced and your ability to convince.
In any case, what is massive refactoring in RoR? Even if "the underlying architecture is simply wrong," it can usually be aligned a little at a time. Make sure you break it into pieces / use branches so as not to break anything while you are busy committing.
If this is not possible, return to the social question of how to convince your manager. This is a simple question - to find out what he has, and to push them, they did not fire and were not arrested. Hiding, hiding food, giving prizes, being a friend, anonymous abductions when you enter and save the day ... It's pretty simple, in fact: creativity is the key!
Dan rosenstark
source share