DEV Community

Discussion on: Clean code, dirty code, human code

Collapse
 
amilcarrey profile image
amilcarrey

I have a question. I'm in a team that doesn't follow any standard, we just write as we think is well. This may be is a company problem who never said us that we must follow this convention but, leaving that aside, how I can say to my fellows "Hey our work will be easier if we write following this convention, standard or avoiding the dirty code" without say dirty and without offending anyone?

Collapse
 
d_ir profile image
Daniel Irvine 🏳️‍🌈

There is so much to say about this topic. First thing that comes to mind is do you think introducing coding standards would be possible? If your immediate reaction is that this would be difficult, then why? For example is it that you think no one would ever agree to a standard? If that’s the case, start with just a few rules that you know everyone will agree with. Perhaps have a weekly meeting to discuss new rules. If even this seems difficult, then perhaps you have to work on building trust with your teammates so that they become more open to persuasion.

None of that is going to happen overnight, so at the same time you need to figure out a way to make peace with the code you dislike that is invariably going to be added to your repositories in the meantime 🤣

Collapse
 
amilcarrey profile image
amilcarrey

I thinks building trust is the best path. Today we have a meting, will se what happen. Thanks dude!