3 ms·
In lots of case linters might be harmful also. It is one thing to have a style guide people follow in most cases, it is another one to rigidly force everywhere
by greatgib 2y ago
In lots of case linters might be harmful also.
It is one thing to have a style guide people follow in most cases, it is another one to rigidly force everywhere the style that the linter enforce.
Especially because most linters will impose that everyone on the team will use them.
For example, if we take Python, there is black that is bat shit and makes your code less readable but adopted by so many teams as cargo cult because doing that signal that you are a cool, hype, best practice following team...
In the end with "black", people are forced to abide by the style of the random guy that created it, that is not exactly following the PEP8 or the zen of python, and is just itself created in cargo cult inspired by go and rust, and Python creator even advised against using it for readability except in special cases like very very big teams.
- jessekv 2y ago> not exactly following the [...] zen of python Blacks's stance that "there should be one obvious way to format things" seems consistent with the zen, even if you disagree with the actual rules.
- greatgib 2y agoFor me it is not respecting the zen of python by pushing you to bad formatting sometimes just because the tool requires you to. And just for reminder, the following is one important point at the beginning of the pep8: Foolish Consistency is the Hobgoblin of Little Minds