4 ms·
As a counterpoint, I am absolutely horrible at writing Bash but I used ChatGPT to write a fairly complex (~50 lines, multiple functions) script in Bash that wor
by rco8786 3y ago
As a counterpoint, I am absolutely horrible at writing Bash but I used ChatGPT to write a fairly complex (~50 lines, multiple functions) script in Bash that works just dandy. It wasn't perfect, and I made a couple adjustments, but it was 100x faster than what I could have done without it.
- iudqnolq 3y agoAs a counter-counterpoint I tried to use GPT to avoid learning bash argument parsing. The script was buggy. After about 30 minutes of iterating with ChatGPT I gave up and read the docs. The issue was immediately apparent: GPT inconsistently mixed up getopt and getops. sometimes the code was correct, sometimes it mixed up the syntaxes each take into a nonsensical blend.