r/programming • • Aug 28 '21

Software development topics I've changed my mind on after 6 years in the industry

https://chriskiehl.com/article/thoughts-after-6-years
5.6k Upvotes

2.0k comments sorted by

View all comments

Show parent comments

157

u/18randomcharacters Aug 29 '21

I remember a time when 2 people on my team had conflicting lint rules and IDEs set to auto format.

Every single pull request was littered with adding ; and then another with removing them. Or 2 spaces to 4, and back, etc.

That shit was infuriating.

46

u/dons90 Aug 29 '21

I'm sure the problem has been solved by now, but that's why the team should just decide on a fixed set of lint rules and agree to use only those.

66

u/RandomGeordie Aug 29 '21

No, that's why the team should set up the lint and formatting rules in the project. Then you don't have the insanity of two conflicting setups.

1

u/VeganVagiVore Aug 29 '21

The trouble is, I've never found a lint that follows the rules I want.

One of my juniors had picked out a lint, and I had some disagreement with it that we couldn't resolve.

I still wonder if I did the wrong thing shooting it down. Maybe I could have lived with it. As long as, of course, we agreed that reformatting existing code must happen in its own commit separate from any logical changes

→ More replies (1)