4 ms·
Can you elaborate on the fixed-width fonts point?
by dpedu 6y ago
Can you elaborate on the fixed-width fonts point?
- gsoto 6y agoAs 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.
- colejohnson66 6y agoSo you’re against any indentation? I don’t think you’ll find many programmers at all who agree with that statement.
- gsoto 6y agoIndentation 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.
- Izkata 6y agoI believe you'd like elastic tabstops: http://nickgravgaard.com/elastic-tabstops/ http://nickgravgaard.com/elastic-tabstops/
- gsoto 6y agoI love them! It's a shame they didn't really catch on.
- drdec 6y agoIf 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.