It seems to me that the big problem is that the God Object class. I would suggest that refactoring just to remove Hungarian notation is a low-value, high-risk activity in itself. Unless there are a lot of automated unit test suites in this class to give you some confidence in your refactoring, I think you should leave it well and truly alone.
I suppose it is unlikely that such a test suite exists, because the developer, following the TDD methods (naturally, avoided building a god object in the first place), it would be very difficult to write comprehensive tests.
Exclusion of the god object and getting the unit test base in place is of higher value. My advice would be to look for ways to refactor the class itself - perhaps when a suitable business requirement / change arises that requires changing this code (and therefore, we hope that with the purchase and payment of some system and regression tests). You may not be able to justify the refactoring efforts in one go, but you can do it in parts, as the opportunity arises, and test drive the changes. Thus, you can gradually convert the spaghetti code into a clean code base with complete unit tests in stages.
And you can eliminate the Hungarian whenever you want, if you want.
razlebe
source share