News for hackers. Stuff that matters.
Re:Ruby One-Liners by anonytrary on Saturday September 14, 2019 @02:02AM (#20969181)
You're not being pedantic. The term "one-liner" is a misnomer. In many languages, whether or not a program can fit on a single line is a pointless metric, since a program can be rewritten into a single line (e.g. with semicolons or commas). People use the term "one-liner" as if it meant "concise code" which isn't necessarily true. It would be more accurate to just say "concise code".
Re:Ruby One-Liners by Zhyl on Saturday September 14, 2019 @08:54AM (#20970488)
I would expand on that and say 'concise code executed by directly invoking the parser in a shell-like environment using special flags such as a,n,p and e.'