Re:How do we read code?
by afhof on Tuesday December 18, 2012 @11:27PM
(#4941136)
Makes me wonder if future languages will be designed to be read in serial. Perhaps that will decrease the amount of time we need to look at code to understand what it does.
[ Parent
| on HN ]
Probably not. I don't think that in the large that helps with readability / maintainability. Even in the small, I find languages which don't allow forward references (Ruby, sh) rather annoying. It forces relatively insignificant implementation details to be read first, rather than starting with the big picture of what the program does.
I would be interesting to do a similar study on some Factor code.
Re:How do we read code?
by evincarofautumn on Wednesday December 19, 2012 @02:06AM
(#4941522)
I would expect similar results. Factor and other stack-based languages are not particularly linear, thanks to, well, factoring. Sure, data flow generally runs from left to right and top to bottom, but word and tuple definitions are just as scattered about as in any procedural language.