7 ms·
Ah, but I use a normal proportional font in my editor so same and diff have different widths. That was the fun comment. The serious ones: 1. I'm trading the a
by pmontra 1mo ago
Ah, but I use a normal proportional font in my editor so same and diff have different widths.
That was the fun comment. The serious ones:
1. I'm trading the ability to align statements on consecutive lines for a more pleasant reading experience.
2. Nobody ever complained that my source code is
a = 1
ab = 2
abc = 3
instead of
a = 1
ab = 2
abc = 3
3. No tables or diagrams in comments of course but I think that I could configure my editor (emacs) to use a monospaced font there. I do use a monospaced font for the ``` ``` blocks of md files.
4. I'm using Atkinson Hyperlegible Next https://www.brailleinstitute.org/freefont/ https://www.brailleinstitute.org/freefont/
- mb2100 1mo ago2. You must have never written Haskell.
- qwerty1793 1mo agoOr terraform.
- onion2k 1mo agoThey would complain if it's: a = 1 ab = 2 abc = 3
- 1718627440 1mo ago> I'm trading the ability to align statements on consecutive lines for a more pleasant reading experience. I'm the opposite, I prefer non-proportional fonts even for prose.
- hiccuphippo 1mo agoCode editors should do this visually without adding actual space characters to the file.
- nasso_dev 1mo agowhy not go even further? store the source minified without any extraneous whitespace and let the editor display a properly indented view in your preferred style...
- hiccuphippo 1mo agoAn AST-based code editor. That would be neat.
- andyclap2 1mo agoI'm glad to hear I'm not the only one - I loved using proportional fonts. I find my ability to scan words is much faster than with monospaced, and I navigate semantically and prefer automated refactors so that I never really felt the need for multi-cursor editing or aligned blocks. All that came to an end when I worked on a project using F#. It just doesn't work with meaningful whitespace. In the current world, with the prevalence of python, I can't really go back unfortunately. Maybe indenting with tabs is the way after all...
- pmontra 1mo agoI am using my proportional font in Python too. The meaningful spaces are at the beginning of the line. 4 monospaced spaces become 4 narrower spaces, 8 monospaced spaces become 8 narrower spaces and they are still twice as wide as the 4 spaces. I never had problems with Ruby, Python, JS, Elixir, Perl and probably other languages I used a little in the last 15 years or more. HTML and CSS too.
- efskap 1mo agoThe best of both worlds would be achieved by elastic tabstops. https://nick-gravgaard.com/elastic-tabstops/ https://nick-gravgaard.com/elastic-tabstops/ If only they took off.