Hacker News new | ask | show | jobs
by neycmrtn 2041 days ago
Aye, in general legibility >> compactness. Apart from the intellectual exercise (fun; !work), one-liners imo come in handy in:

>some_complex_tool | 'my one liner' | some_other_complex_tool > result.txt

Not putting the one-liner logic into a separate script avoids an additional lookup for someone learning what is going on, along with any deployment/path/.. dependencies to that separate script.