News for hackers. Stuff that matters.
Re:The Yoda of Silicon Valley by vram22 on Monday December 17, 2018 @10:49AM (#18699656)
That's a good one. It's one of the classic examples of the Unix philosophy and how pipelines can be powerful, although of course not applicable in all cases, and they have their issues too - which often becomes an argument on HN (about text streams vs. object pipes a la PowerShell, etc.).

I had seen it a while ago and blogged about it here, with solutions (approx.) in Python and shell:

The Bentley-Knuth problem and solutions:

https://jugad2.blogspot.com/2012/07/the-bentley-knuth-proble...

Also, previous HN thread about it here:

Revisiting Knuth and McIlroy's word count programs (2011) (franklinchen.com)

https://news.ycombinator.com/item?id=15264997

Re:The Yoda of Silicon Valley by henrik_w on Monday December 17, 2018 @02:27PM (#18701398)
There is also the book "Exercises in Programming Style" that uses the term frequency problem to illustrate 33 different programming paradigms (including a shell solution).

https://www.amazon.com/Exercises-Programming-Style-Cristina-...

Re:The Yoda of Silicon Valley by vram22 on Monday December 17, 2018 @02:38PM (#18701472)
Cool. Will check that out.