DEV Community

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

Collapse
 
pcmagas profile image
Dimitrios Desyllas

It is much easier to apologize than it is to get permission.****

It depends on whether it is easy for you to apologize. Telling you all the time no don't do this don't optimize that can be emotionally consuming as well.

The thing is that you could "sneak" optimizations as ticket deliverables. Also working from home gives you the advantage of hiding time as well so you can log less time and spend just a bit more time once requested.

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...