News for hackers. Stuff that matters.
Re:Use long flags when scripting (2013) by 52-6F-62 on Friday September 18, 2020 @01:13PM (#24519319)
Wow. I just realized I'm terrible for this. I usually format my programming pretty verbosely to make it future-readable but I'm terrible for not doing that in my scripts.

I'll add a comment or something explaining it but now I feel guilty and should probably go back and rewrite a few lines...

I mean—for long scripts I'll break them up but I haven't paid much mind to arguments/flags.

Re:Use long flags when scripting (2013) by dmurray on Friday September 18, 2020 @01:25PM (#24519483)
I do this if I have to look up the right flag to use. If it's something commonly seen like "grep -o" or "tar -xvzf" I assume whoever is maintaining the script (probably future me) will be more familiar with the abbreviations than the long versions.
Re:Use long flags when scripting (2013) by 52-6F-62 on Friday September 18, 2020 @01:45PM (#24519706)
Yeah good point. It did strike me, though, because I'd just written several scripts running JMeter commands and sort of breezed over how they're written even though I had to go and look up all the flags.