• FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    14 hours ago

    it has modules for everything

    Not everything. PyYAML, Pydantic and Typer are things I commonly want in scripts that aren’t in the standard library.

    Simply do pip install anything. But best practice is to use a python virtual environment and install packages into that one.

    It’s more than “best practice”. It’s mandatory on many recent Linux distros. And yeah setting up a venv and installing dependencies is not something you want to have to do for each script you run.

    Its one of the slowest to write code in.

    It depends what your goal is. If you want robust code that works reliably then I would say Rust has the edge still. Yes it will take longer to write but you’ll spend way less time debugging it and writing tests.