3 ms·
I have a much better time with Python just doing what I want instead of following the Python community's sometimes arbitrary and capricious standards.
by jimmaswell 5y ago
I have a much better time with Python just doing what I want instead of following the Python community's sometimes arbitrary and capricious standards.
- Spivak 5y agoI mean sure, that’s true of every programming language. The reason to follow community standards is to make the lives of other people reading your code easier. Consistency is far more important than any individual’s optimal style.
- dimitrios1 5y agoGod bless gofmt and tools like prettier.
- maleldil 5y agoPython has Black, which uses the same premise as gofmt. Guido doesn't like it, though, but the community seems to.
- dimitrios1 5y agoWhich brings up another point -- that's precisely the difference between having the format be essentially part of the language from day one, and shoehorning it in later. The utility of auto formatting comes from instantly eliminating the squabble and bikeshedding.
- BiteCode_dev 5y agoThe article is not representative of the community, quite the opposite. In fact, the community is embracing "black" these days, the python equivalent of gofmt, exactly because we have better things to do than arguing over PEP 8.
- jimmaswell 5y agoI was thinking back to my earlier days when I'd post questions with code in the freenode python channel and get quibbles about choosing to index an array or not use a list comprehension or which way to format strings. I only ever really write python for quick scripts for myself these days anyway so I guess it's a moot point. Maybe I'll look into what black formatting looks like though.