Comment

Comment by ohples

> Python and Lua are already well suited for the typical scripting tasks (plus there is good old Perl). And I would actually recommend them for any non-trivial scripts as the maintenance is so much easier.

I have some personal rules of thumb/guidlines around this, if a bash script does any of the follow it should be put on the docket to be converted to a Python script/app:

- a nested for loop with more then one level of nesting.

- anything involving arrays/list.

- anything involving json beyond simple queries.

- more then 5 functions.

parent ohples 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton