4 ms·
> Not only do these tricks make your code nicer [...] Huh.
by pas 8y ago
> Not only do these tricks make your code nicer [...]
Huh.
- zzzeek 8y agofor context, author of blog post has written two published Perl books. To make matters worse, they are called "Perl One Liners", "Perl One Liners Explained".
- deleted 8y ago[deleted]
- bewuethr 8y agoTo clarify: "Perl One-Liners Explained" is self-published, and "Perl One-Liners" is based on it and published by No Starch Press. Not sure why that makes "matters worse"? He also self-published "Awk One-Liners Explained" and "Sed One-Liners Explained" and has a "Bash One-Liners Explained" in the pipeline, see http://www.catonmat.net/books http://www.catonmat.net/books
- psetq 8y agoCuriously, the article was published on April 1st. Just a coincidence perhaps...
- jschwartzi 8y agoI have a similar knee-jerk reaction to one-liners from a maintainability standpoint. I have this mental vision of Perl or Shell that looks like Brainfuck.