3 ms·
Actually...is there even a reason for a blind developer to indent their code (outside of languages like Python where whitespace is significant)? Sighted people
by filleduchaos 3y ago
Actually...is there even a reason for a blind developer to indent their code (outside of languages like Python where whitespace is significant)? Sighted people do that so that the code is easier to read, but if you aren't reading visually, then the extra whitespace is useless (the nested context information is already conveyed by curly braces and the like).
It's possible that this developer normally writes without stopping to insert or adjust indentation, and then runs a formatter to pretty up the code before sharing it with others - but simply forgot to do so in this instance (or didn't have one available in the coding exercise editor)
- joelanman 3y agoit's also possible they had very limited vision and used very high magnification, where indentation might be actively unhelpful since you'd just see lots of blank space at times
- chgs 3y agoYou can change tabs to show up as a single character. Of course if people are forcing spaces then you’re stuck, you need to hope that space isn’t significant and then collapse multiple spaces.
- RobMurray 3y agoYes, in my opinion indentation is essential. Screen readers can tell you the indentation level which definitely helps keeping track of where you are when reading nested blocks. It is also important to make the code readable to others.