Prettier tabs save braille space
TIL Prettier is considering making tabs the default in 3.0. This is huge — it would make an entire set of programming languages more accessible (if you're somehow still pro-spaces, read this comment to instantly convert), and, more importantly, vindicate my personal preferences The main reason I would like to see this change is for refreshable braille displays that are used by blind programmers a lot. Each space wastes one braille cell and takes away valuable braille realestate. So if the default indentation of a project is 4 spaces per level, a 3rd level indentation wastes 12 braille cells before code starts. On a 40 cell display, which is the most commonly used with notebooks, this is more than a quarter of the available cells wasted with no information. If each indentation level was represented by only one tab character, there would be three cells occupied by a tab character each, and on the 4th cell, the code would start. That's less than 10 percent occupied on the same length display, but all cells contain valuable information that is easily discoverable and immediately comprehensible.
A screenshot of a tweet about Prettier considering tabs as the default indentation in version 3.0, followed by a comment explaining that spaces waste valuable cells on refreshable braille displays used by blind programmers. The joke is that a personal coding preference is humorously justified with a serious accessibility argument, making the commenter’s point difficult to dispute. EN: A screenshot of a tweet about Prettier considering tabs as the default indentation in version 3.0, followed by a comment explaining that spaces waste valuable cells on refreshable braille displays used by blind programmers. The joke is that a personal coding preference is humorously justified with a serious accessibility argument, making the commenter’s point difficult to dispute.
- @ithueti / 6859 2022-06-29
- Template
- Twitter/X tweet screenshot
- Type
- image
- Size
- 800×524 · 89.4 KiB
- Mood
- nerdy, sarcastic
- Language
- en
- Added