Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Write a Python script instead? Easily cross platform. Nice libraries for CLI args. Easy to debug with a real debugger. Pretty nice?


I'd take php over python any day.

Everyone has their favorite python modules they like to use in scripts, half of them are not built or wrong version for whatever current distro I'm in, so I install stuff with pip, then something with requirements.txt breaks because of wrong pytorch version, I start reading about envs, much crying.

At least with bash or make nobody expects you to provide external modules/libraries


I’ve never so much as looked at a Php script in my life. I’d have to ask ChatGPT how to even run one.

A build script should work with vanilla out the box Python. No extra modules needed. I mean if you can assume vanilla bash tooling then vanilla Python is perfectly fine.

If there’s some Python library you really want then add it to repo. Easy peasy.


PHP has all the same problems (composer or whatever), plus being a shit language that NOBODY uses for scripting.


PHP is a fantastic system scripting language IMO. Much more ergonomic for the task than Python. But I'll do you one better: Perl. Perl is incredibly stable and ergonomic for system scripting. It's probably the most ergonomic scripting lang I've ever used.

The benefit is Perl is robust, unchanging for decades at a time, and available on pretty much every system. Bash is not portable, Perl is.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: