4 ms·
Having a whole program in your field of view isn't the same thing as comprehending it all at once. That would be a horrible fallacy to assert. Software Enginee
by kazinator 9y ago
Having a whole program in your field of view isn't the same thing as comprehending it all at once. That would be a horrible fallacy to assert.
Software Engineering can be regarded as a discipine in which we strive for the understandability of programs which cannot possibly fit into a person's field of view all at once.
- jacquesm 9y agoNo, it isn't the same thing. But it does make comprehension easier. You can get a feel for this by making a text editing window really small, say 10 x 20 characters and then trying to comprehend an otherwise perfectly legible program through that window. It's going to be much harder than when you have more overview. This is also why we make diagrams to show a simplified version of a program to aid understanding. APL went all the way with this and assigned many reasonably complex operations on complex datastructures to single character symbols. Once you know those symbols the code is about as hard to understand as any other language that you've mastered. It's just that because the symbols are not used in any other language family that you are going to struggle quite a bit in the beginning. It's like trying to ready Cyrillic.
- kazinator 9y agoFitting an entire function on the screen is useful compared to just a fraction of a function. (However, if you can only see a fraction of a function, the problem is with the function, not with your screen.) Having a hundred functions in view at once (full definitions) is way, way past the point of diminishing returns. And we have folding editors so you can see function headers: names and arguments. By the way, a 10x20 window: isn't that like a wasteland of wast proportions to an APL programmer?