3 ms·
God forbid that someone should ever write (- y + x) rather than (x - y), what a useless use of the plus sign! Why have a problem with this? Catting a single fi
by joppy 7y ago
God forbid that someone should ever write (- y + x) rather than (x - y), what a useless use of the plus sign!
Why have a problem with this? Catting a single file is a well-known idiom for outputting its contents into a stream, plays well with positioning in pipelines, and has the nice property that you can erase as much of the pipeline as you want, to be able to peek inside it at any point.
- saber6 7y ago> Why have a problem with this? This is hacker news. People will debate the optimal angle of jacking off.
- cormacrelf 7y agoCompletely agree. Cut it if your file is 10GB of logs because it requires an extra stream copy, but otherwise, it is the best way to interactively drill down into data and write the pipeline as you go. It is almost never a valid criticism, and when it is, calling it Useless UOC (reads as an insult to the author!) was the worst way to communicate that to the masses.