←back to thread

365 points tanelpoder | 8 comments | | HN request time: 1.12s | source | bottom
Show context
IshKebab ◴[] No.44978604[source]
This is obviously a great move. I don't know why so many commenters here are against making things better. "Can't you just do <this slightly worse thing> already?". Well yes. But it's slightly worse.
replies(3): >>44978702 #>>44979899 #>>44986544 #
wasabi991011 ◴[] No.44979899[source]
I don't think being one word longer ("uvx ruff format" vs "uv format") counts as being is worse.

I think it is much worse to create a special case that obscures the actual formatter being run and how it is being run (is ruff now preinstalled, or is it downloaded and cached in the same way as other tools?)

replies(2): >>44980423 #>>44986882 #
1. Feuilles_Mortes ◴[] No.44980423[source]
But you have to know about ruff. I didn't, but I did know about uv.
replies(2): >>44981604 #>>44984427 #
2. wasabi991011 ◴[] No.44981604[source]
Not really. If you know about uv, you know how to use "uv tool run", so you know how to use any formatter of your choice (which you can find easily on Google, arguably easier than reading the documentation and learning about uv format).
replies(2): >>44982641 #>>44982877 #
3. IshKebab ◴[] No.44982641[source]
He said "you have to know about ruff". You're not really refuting that by saying "no you don't, you can just google it".
4. jamienicol ◴[] No.44982877[source]
But I don’t know what the formatter of choice is. Nor do I care what it is. I just want to format my code
5. zelphirkalt ◴[] No.44984427[source]
Well, it is arguably worse to run an unknown, not version pinned, unconfigured formatter over your code and expect it to improve things, unless the code is an utter catastrophe in terms of formatting.
replies(1): >>44986899 #
6. wiseowise ◴[] No.44986899[source]
It is completely irrelevant.

You’re offloading responsibility to uv devs in this case.

replies(1): >>44986942 #
7. zelphirkalt ◴[] No.44986942{3}[source]
_You_ may find it irrelevant, but speak for yourself. I don't want dependencies, that are not version-pinned and checksummed running over my code. It is certainly not irrelevant to me.
replies(1): >>44987155 #
8. wiseowise ◴[] No.44987155{4}[source]
That’s for uv for decide. If you don’t like what it does - don’t use uv.