DEV Community

Discussion on: It's not your job!

Collapse
 
sandordargo profile image
Sandor Dargo

I think there might be a misunderstanding which is definitely my fault. Many identify refactoring as an activity that requires a lot of time and that changes the layout of whole components.

Refactoring can be like that.

But it's also part of the Red-Green-Blue cycle of Test Driven Development where it cannot take much time. You don't have to change the world, just make it a bit cleaner around the places you go.

Somebody asked who pays for this. Of course the project. In the long run maintenance costs trump development costs, so you help making it cheaper in the long run. And if the project won't reach the "long run" it was not because you did a proper job.

But I also have a darker response to that money part. Many of those who complain a lot about not interesting jobs and not enough chance to code, yet they write low-quality code, they tend to spend more time on social media, news portals, in the coffee rooms, or just smoking outside. Who pays for that?