Hacker News new | ask | show | jobs
by codekisser 621 days ago
I think it's a pretty odd choice to make capital letters and ascenders tall in the name of legibility, especially for programming fonts. Much like bolding text, making capital letters relatively larger will make them stick out more in the code. But, do we need capital letters to be more noticeable?

* for ALL_CAPS constants, there's really no reason why constants should stick out above the rest of the code. In fact, as an invariant, it's probably less important when reading code. * If you mix up PascalCase and camelCase, your linter or compiler will most likely catch it

Maybe capital letters should blend in more so syntax highlighting and "code shape" (eg indentation) will dominate --- which are much more important for understanding code at a glance than how we chose to arbitrarily capitalize some names.