Not that there isn't some merit to McIllroy's criticism (I know some of the frustration from trying to read Knuth's programs carefully), but at least link to the original context instead of a blog post that tells a partial story:
https://www.cs.tufts.edu/~nr/cs257/archive/don-knuth/pearls-...
https://www.cs.tufts.edu/~nr/cs257/archive/don-knuth/pearls-...
(One of the places where McIlroy admits his criticism was "a little unfair": https://www.princeton.edu/~hos/mike/transcripts/mcilroy.htm)
BTW, there's a wonderful book called “Exercises in Programming Style” (a review here: https://henrikwarne.com/2018/03/13/exercises-in-programming-...) that illustrates many different solutions to that problem (though as it happens it does not include Knuth's WEB program or McIllroy's Unix pipeline).
>(More on that here: https://news.ycombinator.com/item?id=18699718)
>BTW, there's a wonderful book called “Exercises in Programming Style” (a review here: https://henrikwarne.com/2018/03/13/exercises-in-programming-...) that illustrates many different solutions to that problem (though as it happens it does not include Knuth's WEB program or McIllroy's Unix pipeline).
I'm the same person who referred to my post with two solutions (in Python and shell) in that thread, here:
https://news.ycombinator.com/item?id=18699656
in reply to which, Henrik Warne talked about the book you mention above.
It should have been obvious to you, but maybe it wasn't: nobody always considers all viewpoints when making a comment, otherwise it would become a big essay. This is not a college debating forum. There is such a thing as "caveat lector", you know:
https://www.google.co.in/search?q=caveat+lector
>else we may keep having the same conversation every time.
No, I'm quite sure we won't be. Nothing to gain :)
1. You don't think the mentioned problems are serious,
or
2. You agree there are serious problems but don't care and will just post it anyway.
Not sure which one it is, but it doesn't cost much to add a simple disclaimer (or at least link to the original articles). Else as long as I have the energy (and notice it) I'll keep trying to correct the misunderstandings it's likely to lead to.
Some discussion on the pros and cons of those two approaches, here:
More shell, less egg:
http://www.leancrew.com/all-this/2011/12/more-shell-less-egg...
I had written quick solutions to that problem in both Python and Unix shell (bash), here:
The Bentley-Knuth problem and solutions:
https://jugad2.blogspot.com/2012/07/the-bentley-knuth-proble...