• 1 Post
  • 94 Comments
Joined 7 months ago
cake
Cake day: December 16th, 2024

help-circle


  • Yeah, none of that with bat:

    λ bat $(type -P bat)
    ───────┬──────────────────────────────────────────────────────────────────────────
           │ File: /usr/bin/bat   <BINARY>
    ───────┴──────────────────────────────────────────────────────────────────────────
    λ bat < $(type -P bat)
    ───────┬──────────────────────────────────────────────────────────────────────────
           │ STDIN   <BINARY>
    ───────┴──────────────────────────────────────────────────────────────────────────
    λ
    




  • You’ll likely also want to check out ruff for linting and formatting, by the same company that makes uv. It doesn’t enable a lot of lints by default, but there’s a long list of checks to enable.

    They also have a typechecker, ty, which is still in early alpha. If it’s as good as their other tools I expect it to become the standard for typechecking Python. Currently you’ll likely want to go with pyright for that.







  • At the user level they’re just tools, not programming languages. Python users are generally moving to ruff (and uv) because of ergonomics: It works well and really fast which makes for a smooth experience in-editor. Plus using fewer tools to achieve a similar result is generally desirable.

    And for a complete newbie like someone taking a course, I think there’s no “sticking with” to speak of. Might as well just skip over the tools people are migrating away from and start with the tool people are migrating to.