Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Fair enough, I understand every team is different.

> forcing arbitrary style leads to so much more time wasted as people debate exactly which styles to enforce

If this is happening often, I would unambiguously call that a problem, though. It should only happen once (and then, when enough has changed in the frameworks, maybe once again). This is exactly the philosophy Prettier takes: it is purposely difficult to change. It works really well as it is, and keeping it constantly optimized for community preference would be an anti-pattern.

> I disagree with this too. I have never found this type of style to be something that actually impacts readability and quality. If you using `if !` and I using `unless` is the problem with the codebase, that's not so bad.

I more or less actually agree with you on this. Small stylistic differences are generally negligible. But variations add up, and some are more egregious than others. I consider this more of a guiding philosophy than a rule; `if!` vs `unless` on its own is not a real problem.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: