DEV Community

Discussion on: Why not write clean code?

 
tamasrev profile image
Tamas Rev

Your comment makes sense, totally. I don't think it was combative at all.

In the Working Effectively with Legacy Code, Michael Feathers wrote that programming requires good judgement. So I can't tell you from my seat how much polishing is enough for you. I don't know what kind of environment are you working in. I don't know if your employer can tolerate little more polishing in order to reduce maintenance costs. I don't know if you're working on an experimental feature.

We need to consider these, when we decide how much we should polish our code. Probably there are other aspects too.

So, in general: we should write clean code. In particular: it depends ;)