News for hackers. Stuff that matters.
Re:After 3 Months of JavaScript Linting, It's Pretty Much Al... by whipoodle on Thursday August 03, 2017 @01:13PM (#14921485)
> 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.

Re:After 3 Months of JavaScript Linting, It's Pretty Much Al... by lolc on Thursday August 03, 2017 @01:23PM (#14921601)
Note how he explicitly recognizes how everybody has their own best style. Nowhere does he encourage arguing about style details.
Re:After 3 Months of JavaScript Linting, It's Pretty Much Al... by whipoodle on Thursday August 03, 2017 @01:44PM (#14921847)
I 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.
Re:After 3 Months of JavaScript Linting, It's Pretty Much Al... by nulagrithom on Thursday August 03, 2017 @02:24PM (#14922262)
Consistent 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.

Re:After 3 Months of JavaScript Linting, It's Pretty Much Al... by whipoodle on Thursday August 03, 2017 @02:27PM (#14922300)
(Just don't mention PHP has this in spades, people hate when you point that out.)