I have worked as a software developer for few years now, and the most common thing that I had to deal with, was figure how works some code that another dev wrote.
By the time I started it was not rare to listen me criticizing the code that someone else wrote even if that code was working fine and in most cases based on personal preferences and choices.
Something that I learned as the time passes was to have empathy with another developer's code. Each person has your own backgrounds, convictions, policies and mental model, as long that their code follows the team/company conventions and not present some real issue there is nothing to worry about.
So I decided to make a simple work flow
I hope to help beginners developers to recognize this thoughts and follow some logical work flow before blame, judge or criticizing some work colleague.
Top comments (2)
I agree! Especially in the open source world where you have pieces of code coming from myriads of different people, sometimes it can get a little frustrating. Large teams will normally force people to follow their style guides, but as you said some things are just up to preference, such as whether to use switch or if/else statements.
Very good point Sergix. In open source, empathy is a key skill!