News for hackers. Stuff that matters.
Re:Response to “Literate programming considered harmful” by catnaroek on Wednesday August 31, 2016 @08:42AM (#12397839)
If you think that code is readable, could you correctly write all pre/post-conditions in between statements?
Re:Response to “Literate programming considered harmful” by panic on Wednesday August 31, 2016 @09:20AM (#12398050)
I think that's a little different. Reading code almost never involves analyzing it to that degree. Usually you're just trying to figure out what part is broken or where you need to add some new functionality.
Re:Response to “Literate programming considered harmful” by catnaroek on Wednesday August 31, 2016 @09:24AM (#12398081)
The meaning of an imperative program is given in terms of Hoare triples. If you can't produce such triples on demand, then you don't understand the program in question.