Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My IDE is misconfigured, and for html/css code uses Arial, or some other proportional font.

It's just painful to watch!

The non grid alignment, randomness, just makes it more distracting to me. Perhaps if I was exposed to it for a long er period of time, a week as you suggested, this uneasiness will slowly fade.

But, let me ask you: What's that you find so good about it? More content in less space? Why won't you go back?



Aesthetics -- nothing else.

As for the grid alignment, I never make block-style comments and normal indentation works just the same. I am not sure what you mean with "randomness".


I'm with OP on the issue --- proportional font for code. I find it easier to read. It goes out if its way to go out of my way.

Why would proportional font be easier to read? No idea, honestly. May be related to fact I read a lot of non-code (documents and fiction) as well, and those almost always come in proportional fonts.


Indentation. Monospaced fonts allow much easier scanning of indentation levels. For Python this is crucial; for brace-delimited languages it's merely important for many of us.


I don't follow you -- `easier scanning of indentation levels'?

With proportional font, the left-hand whitespace used for indentation of your code looks exactly as with monospaced font. Only the text itself changes somewhat.

The width of tab/positions of tabstops has nothing to do with font itself; it's property (often settable) of the editor (or in rare case of the underlying terminal). May be expressed as `times the space width', but that's it.

Perhaps you mean aligning of function argument and/or parameters one below another, or indentation of parts of expressions one below another? That indeed can't work with proportional font IF the peers in your project use different font (size or shape) or tab-stop setting. Can't work with monospaced font either -- again, IF the peers on your project use different tab-stop settings. Which is prevalent, AFAIK. Some use 12'' netbooks, other use 23'' desktops. I've even known a guy who used a T221 [1]. One size does not fit all.

Nb., you may want to read up on http://nickgravgaard.com/elastictabstops/ if you like to align stuff that way. I don't like that idea though.

----

[1] http://en.wikipedia.org/wiki/T221


This is probably the best advice. If you're doing all your own code, then non-fixed may work.

If you're on projects with other devs where there is an in-grained fixed-width coding practice, it may be very hard to suddenly go non-fixed.


You'll be freed from worrying about structure so much. Why is it painful to see HTML in a proportional font? Your indentation levels will remain the same; are you relying on mono-spaced fonts to lay out tables by hand?

That said, I'm not against using a nice mono font like Anonymous Pro; I used that font in Acme to write the code and thesis for my Master's.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: