DEV Community

Discussion on: Should you ask permission to write better code?

Collapse
 
dvddpl profile image
Davide de Paolis

sure. but the key here is understanding what we mean with optimize and sneak.
improving the code by splitting a method and writing a couple of unit tests for those methods is something that I would not even consider "sneaking in", it is just a good practice and something that should be part of the task itself. If you have to apologize for such things.. well, i guess there are bigger problems in your team/management...