News for hackers. Stuff that matters.
Re:“I just chose words carefully” by pmontra on Monday August 31, 2026 @01:16AM (#49505868)
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/

Re:“I just chose words carefully” by mb2100 on Monday August 31, 2026 @02:53AM (#49506453)
2. You must have never written Haskell.
Re:“I just chose words carefully” by qwerty1793 on Monday August 31, 2026 @04:49AM (#49507221)
Or terraform.
Re:“I just chose words carefully” by onion2k on Monday August 31, 2026 @03:08AM (#49506557)
They would complain if it's:

  a   = 1
  ab = 2
  abc = 3
Re:“I just chose words carefully” by 1718627440 on Monday August 31, 2026 @05:45AM (#49507728)
> 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.

Re:“I just chose words carefully” by hiccuphippo on Monday August 31, 2026 @09:28AM (#49509552)
Code editors should do this visually without adding actual space characters to the file.
Re:“I just chose words carefully” by nasso_dev on Monday August 31, 2026 @10:16AM (#49510095)
why 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...

Re:“I just chose words carefully” by hiccuphippo on Monday August 31, 2026 @10:28AM (#49510213)
An AST-based code editor. That would be neat.
Re:“I just chose words carefully” by andyclap2 on Monday August 31, 2026 @10:04AM (#49509973)
I'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...

Re:“I just chose words carefully” by pmontra on Monday August 31, 2026 @01:10PM (#49512151)
I 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.

Re:“I just chose words carefully” by efskap on Tuesday September 01, 2026 @02:33AM (#49518675)
The best of both worlds would be achieved by elastic tabstops. https://nick-gravgaard.com/elastic-tabstops/

If only they took off.