Remix.run Logo
theanonymousone 6 hours ago

I already do it, but not in TS. There is a scripting language that is as available in most/all (non-Windows) systems as Bash: Python.

Edit: zero-dependency Python.

verdverm 6 hours ago | parent [-]

Works all and well until you need a dependency, then you need to do all the same project setup as normal.

Stopped using python for scripting for this reason

GeneralMaximus 5 hours ago | parent | next [-]

If you use `uv`, you can declare your dependencies at the top of a script: https://docs.astral.sh/uv/guides/scripts/#declaring-script-d...

I've started using Python for many more tasks after I discovered this feature. I'm primarily a JS/TS developer, but the ability to write a "standalone" script that can pull in third-party dependencies without affecting your current project is a massive productivity boost.

theanonymousone 5 hours ago | parent | prev [-]

I don't think you need any dependencies to match Bash scripting in capability.

hsbauauvhabzb 5 hours ago | parent [-]

You can even wrap shell / system commands in python and capture the output, so it’s basically a superset!

kh_hk 3 hours ago | parent [-]

You can also inline python inside shell scripts, does that make them equal sets? :)

    life() {
      python3 << EOF
    print(42)
    EOF
    }