News for hackers. Stuff that matters.
Re:Controversial Programming Opinions (2012) by dpedu on Friday December 04, 2020 @02:25PM (#25306535)
Can you elaborate on the fixed-width fonts point?
Re:Controversial Programming Opinions (2012) by gsoto on Friday December 04, 2020 @03:30PM (#25307411)
As long as source code resides in plaintext files, writing in columns (i.e. vertically aligning blocks of text) seems like an excessive endeavor with little gain.

We are not typesetting; formatting resources should be kept to a minimum to make the code easy to handle in plaintext. Fortunately, code is restricted enough that we can do pretty well without those.

You don't write spaces to align text in Word: it's a nightmare to maintain and the software provides better tools for that purpose. Why do we still write code as if we were using a typewriter?

You may think you are improving readability by aligning columns of text, but then, the impossibility of standardizing such baroque formatting rules goes against that. Furthermore, you are preventing people from using a variable-width font, which is actually better for readability.

Re:Controversial Programming Opinions (2012) by Izkata on Friday December 04, 2020 @10:35PM (#25311484)
I believe you'd like elastic tabstops: http://nickgravgaard.com/elastic-tabstops/
Re:Controversial Programming Opinions (2012) by gsoto on Saturday December 05, 2020 @01:23PM (#25316865)
I love them! It's a shame they didn't really catch on.
Re:Controversial Programming Opinions (2012) by colejohnson66 on Friday December 04, 2020 @07:46PM (#25310421)
So you’re against any indentation? I don’t think you’ll find many programmers at all who agree with that statement.
Re:Controversial Programming Opinions (2012) by gsoto on Friday December 04, 2020 @10:13PM (#25311355)
Indentation is OK, sure. I was talking about aligning stuff on the middle of a line.

I find tabs better for indentation but in practice end up using spaces.

Re:Controversial Programming Opinions (2012) by drdec on Friday December 04, 2020 @04:14PM (#25308076)
If you are interested in experimenting with non-fixed width fonts for programming, you could try Source Insight. I was at a company that used it for a while and surprisingly, I didn't miss using fixed width fonts at all.