← Back to context

Comment by leoedin

4 hours ago

The quality of my bash scripts is 100x what they used to be. Proper help messages, flag parsing, functions, internal variables, using sed all the time (I could never wrap my head around that).

Of course, the main issue is that they’re completely undebbugable now. My bash scripts used to be a sequential list of commands, now they’re 500 lines of variable laden functions.

Is my life any better? Dunno. But it’s satisfying (until there’s a bug)

> the main issue is that they’re completely undebbugable now

Well, that means the quality actually dropped then :). Looking impressive isn't equal to quality, understandability and reliability is

  • Not necessarily…. As with all engineering choices there are tradeoffs involved. There can be both advantages and disadvantages to using AI to build scripts. And more likely than not you’ll need AI to help debug the scripts when they have issues. Real tradeoffs to consider.

I switched to js for dev related scripting after seeing how much python scripting is used for portable c++ projects like chromium.

A node glob() or a regexp string.replace call is probably easier to read than spaghetti shell.

And your llm might do a much better job of creating clean, readable and testable code.