3 ms·
I can easily see that everything there is an integer without having to slide my eyes around. Doesn't this contradict his point that: Reading code isn't much d
by userbinator 12y ago
I can easily see that everything there is an integer without having to slide my eyes around.
Doesn't this contradict his point that:
Reading code isn't much different from reading prose.
since we're already used to reading both horizontally and vertically? I'm not saying that we should get rid of indentation and just write all code like prose - in particular, nested structures are clearer with indentation to denote the nesting level - but I definitely don't consider a series of variable declarations and values to be columnar data that requires vertical alignment.
If our tools make understanding those ideas more difficult, it's the tools which need to change - not us.
On the other hand, the use of more advanced tools, particularly by beginners, tends to encourage a dependence on them and a more superficial "understanding" of the code (I'll argue that the understanding has been shifted to understanding the tool, and not what it works with.) Many of the most concise and elegant solutions I've come up with were the result of deep thinking and the use of pencil and paper, or a whiteboard, instead of an IDE or even a text editor. I am reminded of this article which has the same opposing view: http://www.linusakesson.net/programming/syntaxhighlighting/ http://www.linusakesson.net/programming/syntaxhighlighting/