Earlier quoted context omitted.
The point of the "grammar nazi" bots is to focus on the actual problems: if a bot is deciding about linting, you don't have to waste brain power to discuss it in PRs. It is what it is, everyone gets the same, shut up and work on what matters. I'm surprised you consider it a lot of energy spent, I tend not to spend any on this, it just runs automatically on my code and I drop out of pretty much every discussions about…
> The point of the "grammar nazi" bots is to focus on the actual problems: if a bot is deciding about linting, you don't have to waste brain power to discuss it in PRs. And yet, as per the example, the bot force worse linting decisions, and even pushes towards more bugs (e.g. future readers missing the comment intention since it now applies to all 3).
Ruff v0.16.0 – Significant new updates – 413 default rules up from 59
151–160 of 247 posts
Re: Ruff v0.16.0 – Significant new updates – 413 default rules up from 59
#152Earlier quoted context omitted.
You want to be a cog wheel, in a company of cog wheels. There's nothing wrong with that. But I want to be an artist, and preferably in a company of artists, having been in a company of cog wheels too many times. Not only it's more fun that way, but also tends to lead to better outcomes.
That's an uncharitable take and I urge you to reconsider. I also take great joy and pride in the art of writing beautiful code. I have no desire to be a cog in a machine. However, my ADHD brain is delighted to not have to make a million little distracting decisions in place of the code planning I should be doing. Formatters let me concentrate on writing the best data structures and APIs and algorithms instead of how…
Re: Ruff v0.16.0 – Significant new updates – 413 default rules up from 59
#153Earlier quoted context omitted.
But your choice of funny variable names is not a craft, and you’re not a craftsman if you think it matters. What matters is extensibility, maintainability and value delivered. I care how the food tastes, not that the chef has a really cool Japanese knife and is really fast at cutting onions.
I think you miss the point, but using your foodie reference: would you rather go to a couple of Michelin restaurants -- where each piece brings a reflection of the chef, the geographic area, and what quality ingredients were available on that day -- or would you rather only eat at McDonald's for an experience that is extremely consistent across days, seasons, and continents? Now imagine a chef who has a nice little r…
Re: Ruff v0.16.0 – Significant new updates – 413 default rules up from 59
#154The amount of fascination that people have with these "grammar nazi" bots -- some of them implementing completely arbitrary "rules" and some of them disagreeing with others on what "good" Python code should look like -- doesn't stop to amaze me. 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, "…
With regards to your example, adding a comma to the final element should preserve multi-line. You just don’t know the formatting rules yet apparently
Re: Ruff v0.16.0 – Significant new updates – 413 default rules up from 59
#155Earlier quoted context omitted.
The point of the "grammar nazi" bots is to focus on the actual problems: if a bot is deciding about linting, you don't have to waste brain power to discuss it in PRs. It is what it is, everyone gets the same, shut up and work on what matters. I'm surprised you consider it a lot of energy spent, I tend not to spend any on this, it just runs automatically on my code and I drop out of pretty much every discussions about…
I've never had discussions about code formatting in PRs, this seems like a made up problem or something that predates my career.
That's because everybody uses linters nowadays, which was the original point.
Re: Ruff v0.16.0 – Significant new updates – 413 default rules up from 59
#156Earlier quoted context omitted.
A person just as opinionated as the tool. People who have very strong opinions about formatting in any direction are suspect.
I do not have any opinion on formatting. My argument is that nobody should.
this is the difference between the atheist who strongly believes nobody should believe and the atheist who isn't interested and doesn't care
Re: Ruff v0.16.0 – Significant new updates – 413 default rules up from 59
#157Earlier quoted context omitted.
Those tools actually save team energy. Without them any programmer has different opinion on formating, code quality, what is readable etc. You can discuss it endlesly or you can just use ruff.
I have never discussed code formatting and drive-by changes more than in projects with auto formatters.
Re: Ruff v0.16.0 – Significant new updates – 413 default rules up from 59
#158Earlier quoted context omitted.
In my previous place, discussions on coding style were forbidden in PRs. It worked just fine. Edit: one could also use single or double quotes in strings, and it didn't anger the grammar nazi bots as there were none.
Using a consistent string delimiter has value: if you search for ['foo'] you will find all instances of the string foo. With inconsistent delimiters, you better have a single canonical 'foo' in your project or you're going to run into problems.
You probably haven't written diverse enough code.
Re: Ruff v0.16.0 – Significant new updates – 413 default rules up from 59
#159ran 0.16 on a file with no config, it flags unsorted imports and `except Exception` by default now
You know how many bugs I've met working on large Python codebases over 20 years, caused by unsorted imports or `except Exception`? Yeah, you've guessed it: exactly 0 bugs. It's really annoying how many people think that if you enforce stupidly strict rules about formatting, more strict that those of Fortran in 70s, you'll automatically get good code. I've seen companies that enable 100% of ruff rules, use several oth…
Re: Ruff v0.16.0 – Significant new updates – 413 default rules up from 59
#160The amount of fascination that people have with these "grammar nazi" bots -- some of them implementing completely arbitrary "rules" and some of them disagreeing with others on what "good" Python code should look like -- doesn't stop to amaze me. 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, "…
The point of the "grammar nazi" bots is to focus on the actual problems: if a bot is deciding about linting, you don't have to waste brain power to discuss it in PRs. It is what it is, everyone gets the same, shut up and work on what matters. I'm surprised you consider it a lot of energy spent, I tend not to spend any on this, it just runs automatically on my code and I drop out of pretty much every discussions about…