News for hackers. Stuff that matters.
Re:Stop Piping Cats by camccann on Wednesday February 10, 2010 @07:43PM (#1116546)
There's a nice consistency in doing it that way--it's very easy to think of cat as turning an "inert" file into a stream of data, each program as a function that applies a transformation to a stream with a particular kind of content, and the pipe as function composition (given compatible stream content). A very comfortable programming-like perspective, at least to me. (Pop quiz: What programming idiom closely resembles this "repackage content and apply sequential transformations" approach?)
Re:Stop Piping Cats by silentbicycle on Thursday February 11, 2010 @08:08AM (#1117508)
Spoiler alert: See also Oleg Kiselyov's "Monadic i/o and UNIX shell programming" (http://okmij.org/ftp/Computation/monadic-shell.html).