2,805 karma · joined July 28, 2011
You will probably have to do it all over again when these guys release even newer and shinier 0.17.0, with even more rules.
I can't understand how the option of not feeding the bot eludes people.
Peace, man.
There's no "tool replacement" going on here.
If someone wants to use a linter, I have no problem with that. I don't, and I don't want others forcing one on me, especially so as most of its "results" are straight in "this doesn't matter either way" category (in my example: two spaces instead of one, replacing quotes) and the rest make my code verifiably worse (folding a list in one line).
I've worked on great codebases that would produce thousands of linter errors (lowball estimation), and on shitty codebases that were 100% compliant.
In a thread where I complain about the de-humanisation of my profession by the bots, the irony of having a bot's psychological advice (and so, de-humanising the discussion too) is not lost on me.
When you replace tool x with tool y, you need to fix your code, because these tools do not agree on what your code should look like, and what was acceptable for tool x simply isn't for tool y.
One of these changes I mentioned brought a massive reformatting of all code base, as the new tool failed 'import' statements unless they were in alphabetical order.
The bigger problem is this: you want me to be a cog wheel, but I want to be an artist.
Add a look-behind for '[' and a look-ahead for ']' and you'll be fine.
Now imagine a chef who has a nice little restaurant but is now being sent a couple of "quality assurance" guys from McDonald's who tell him that his choice of potato variety for chips does not exactly conform to the "standards" defined at the mothership.
Python was designed from the start so that 'foo' and "foo" are equal. It also worked like that for 30 years or so. This has not been an issue in these 30 years. But then someone came with an opinion that one of them is better than the other.
In my first ten years of writing Python, I never argued about code style with anyone. It's only after they brought the bots in that I learned that my style is somehow "bad."
However since you've asked so nicely here you go: everybody’s code looking different is because all humans are different. It's what makes us human. I am very serious about my craftsmanship, and I bring my "humanity" to it: sometimes I include a cultural reference (as in the example above), or an internal joke in the name of a (very long) variable, or vent my frustration in a comment.
My first ten years of writing Python were uneventful; nobody commented about my style and I never commented about others'. With the advent of grammar nazi bots, everyone is supposed to now please them by writing completely bland code, which in my opinion degrades me from a craftsman to a code-monkey. This is dehumanising, in a certain sense.
-- Ralph Waldo Emerson
Edit: one could also use single or double quotes in strings, and it didn't anger the grammar nazi bots as there were none.
Another option would be to leave both topics alone and go on with our lives, improving the product, fixing bugs, implementing new features, and generally giving customers a better product and shareholders more value, while respectfully agreeing to disagree on the issues of style.
Here's "bad" code:
important_numbers = {
'x': 3,
'y': 42, # Answer to the Ultimate Question!
'z': 2
}
Here's what "good" code should look like: important_numbers = {"x": 3, "y": 42, "z": 2} # Answer to the Ultimate Question!
Which completely misses the writer's intent. But did you notice that there are two spaces before the pound now? Also, the quotes are now double because apparently it's somehow more kosher! So much improvement!The actual problems in the code I work with are not the spaces at the end of line or imports in non-alphabetic order, it's the 10-line list comprehensions that are so long that they're impossible for me to parse. None of these tools catch that. My place used pylint, flake8, black, ruff -- with hundreds of commits on every change. All that energy could be better spent elsewhere.
> Latvia: Mark Rothko
Marcus Rotkowitz was Jewish, born in Dvinsk, Russian Empire (today Daugavpils in Latvia) and emigrated when he was 10 (and Latvia wasn't a country yet.) At home, he spoke Yiddish and Russian, and probably didn't know a word in Latvian (at the time, Dvinsk population was half Jewish, with the rest divided between Russians, Poles, and Latvians).
Your idea that he's the guy who should represent Latvia on a European banknote would probably quickly get you burned at the stake at Doms Square in Riga.
They printed four of my fingers the first time (presumably for "collecting") and the same four fingers the second time (presumably for "verifying"), so it was the same procedure, taking the same time. Taking a picture of me also took the same time in both cases (I had to position myself in the frame "just right".)
With that, it should take the same time "collecting" from X people as it would "verifying" X people, and so the ratio of "first-time" visitors is irrelevant.
The fact that we leave fingerprints everywhere is hardly relevant, considering the costs of retrieving and storing them en masse are astronomical.
The licence plates on our cars are out in the open for everyone to see, and yet when a private company collects them and makes a searchable database out of it -- with locations and timestamps -- making it possible for anyone with access to build traceable paths of all of our movements since forever, it results in people getting enraged, and in my opinion justifiably so.
> US-issued visas are multiple entry for 10yrs
Some of them but definitely not all of them. > it's relatively not a hassle at all
I guess you have never had to hunt for the online queue at the embassy and never had to travel (potentially hundreds of miles) for the interview at that embassy. In which case, lucky you! However "it's not a hassle for me" is different from "it's not a hassle at all".