|Syntactic Confectionery Delight|
Re^3: An Introduction to Literate Programming with perlWEBby BrowserUk (Pope)
|on Jan 13, 2009 at 15:21 UTC||Need Help??|
You've either failed to read the post, or are just being deliberately obtuse in order to dismiss it.
The only one I'l come back at you on is 7: If the interleaved prose is not a secondary attempt to explain the algorithms and operations of the code it interleaves, why it is interleaved?
If it isn't an attempt to re-describe the code--and both your example and those in Knuth's original paper show otherwise--then there is no logic at all in keeping with the code, let alone interleaving it.
And the answer of course is that it is an attempt to describe the code. And syntax, used to describe algorithms, is programming by any other name. So now you have two descriptions of the same thing.
And both need to be maintained and synchronised.
Maybe if you are writing a book or academic paper, there is some merit, but for production code...it simply does not make sense. To me at least, but whatever floats your boat.
I will say that having been there and done that--and in a much less intrucive form; no reordering or pre-processing--it was a nightmare to both write and maintain. And that was with the benefit of a folding editor that would hide the verbiage at a keystroke.
By way of example, you're in there fixing a bug. Do you fix the prose or the code first?
Any way you look at it, it's simply extra work for little or no gain.
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.