- Joined
- Dec 1, 2007
- Messages
- 38,987
- Likes received
- 2,910
- Thanks received
- 678
- Location
- My house
Simple refactorings are fine. Totally refactoring the whole class is not. It's not about lack of initiative, it's about knowing what is worth doing, and communication. If you are assigned to make a small fix and the reviewer is confronted with hundreds of lines of changed code, they have to spend extra time checking you didn't screw something up.What a depressing thread. You should only do exactly as you are instructed and show no thought or initiative at all?
My view was always that you should leave code better than you found it. If you can make simple refactorings such as pulling methods to improve readability, reuse, testablity then its basically your responsibility as a professional to do that.
If you get an understanding that you will do this kind of thing as part of your contract then it's fine, but blundering in without even warning someone is the trademark of a wet behind the ears over-enthusiastic graduate.
