[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: web-based, distributed, accessible applications (was LibreFaso)



Oh, I don't mind indentation per se... but in C++, the worse that
happens with a misplaced tab is that the code is a little harder to
parse visually. In Python, a misplaced tab can cause logic errors that
are a real gnoll to track down and will usually not trigger an
interpreter error... Misplaced curly braces are the bane of my
existence when writing C++, but at least they tend to throw compiler
errors that sometimes give me an idea of where to start for fixing the
problem and when I got a few lessons in Python, the whitespace
sensitivity got me nostalgic for misplaced curly braces.

And don't get me started on Python source code that uses spaces in
multiples of 4 instead of tabs for indentation or which mix tabs and
spaces in their indentation... making sure every line of a code block
has exactly 4 leading tabs is hard enough... making sure they all have
exactly 16 leading spaces is a nightmare...

And hey, it's probably possible to write a bash script that can
automatically fix indentation in a .cpp file, but you kind of need to
know what the program is supposed to do to have any chance of
identifying when a line is indented by the wrong amount.

Granted, if I knew how to make my console screen reader speak
whitespace when reading character-by-character(and thus could tell
tabs and spaces apart) or how to toggle between a less verbose "prose"
reading style and a more verbose "code" reading style where reading
line-by-line speaks characters that are normally unspoken, it would
probably alleviate some of my dislike of whitespace sensitivity.


Reply to: