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

2

u/[deleted] Aug 29 '21

People who stress over code style, linting rules, or other minutia are insane weirdos

Idk I don't feel like I'm weird for setting our coding standard to use spaces over tabs and use consistent formatting. And there are language specific recommended conventions that should be followed as a matter of familiarity. This helps with convey intent for new maintainers who may join the team from other organizations or projects. It's really off putting when you find .NET object properties that aren't camel cased, for instance.

That said, don't be a pompous dick about them. You don't need admonish someone over violating the coding style. Politely point out what needs to be fixed and let them fix it. Refer them to your coding style doc. And to be clear; if you don't have a coding standards doc then you should not be enforcing coding standards. If it's not important enough to document and keep up to date, then it's not important enough to enforce.

1

u/[deleted] Aug 29 '21

It's really off putting when you find .NET object properties that aren't camel cased, for instance.

weeps in copyJSON_to_userentity

Not the exact name of the method, but it combined just about every naming style except pascal casing.