5 ms·
> Hopefully, you feel as passionately as I do about your own stylistic choices. Nooooo. No. Hopefully the exact opposite. The correct feeling about this is, le
by whipoodle 9y ago
> Hopefully, you feel as passionately as I do about your own stylistic choices.
Nooooo. No. Hopefully the exact opposite. The correct feeling about this is, let's pick a style and move on. Ideally there's a tool that just formats the code according to the style so coders don't even have to do it.
Arguing about style details is absolutely one of the least productive possible things a programming team could do. It's aggravating and pointless. Getting upset that your pet style rule isn't in the official style is egotistical and childish. Code that way on your GitHub when you're not working, if it's so important to you.
This is one thing Go got right.
- lolc 9y agoNote how he explicitly recognizes how everybody has their own best style. Nowhere does he encourage arguing about style details.
- whipoodle 9y agoI just think it's silly. It's a silly thing to get attached to or care about. The code just needs to be legible and consistent.
- nulagrithom 9y agoConsistent is a big one. Imagine every time you reach for a module in your codebase you have to remember that Joe came from C# so he likes to use PascalCase for his methods instead of camelCase like the majority of JS libraries. And John likes Snake_case for his classes because he came from PHP and that seems more natural to him. I've been in that environment. It will make you tear your hair out in a week.
- whipoodle 9y ago(Just don't mention PHP has this in spades, people hate when you point that out.)