l0I! Fonts and programming

fonts_headerLO0iIl – now, can you tell which character is a zero? Letter “o”? “i”? Lowercase “l”? Probably not. The only way to differentiate them is by the FONT‘s type. A good font lets you differentiate these characters. WordPress’ default font does an average job at it, since we can tell the difference between all characters, except for the zero “0” and the letter “o”. That’s a problem.

I’ve realized for quite some time that most fonts ARE crap when it comes to programming/coding. When characters that should and MUST be different look the same, you have problems. Especially when coding sensitive stuff; a single wrong character can sometime very often be fatal in software programming.

Hack ‘n’ Slash

Slashed-zero should be mandatory, but some weirdos still think it’s more “beautiful” without the slash. Communication is always the number one issue in any organization. Non-slashed zeroes is the path to the dark side. Non-slashed zero leads to confusion, confusion leads to costly mistakes, costly mistakes leads to suffering.

It’s like those people who, wanting to do well, write down their passwords for the sysadmin in uppercase to make sure each characters are readable… and wonder why the next morning the password they asked for isn’t working… (recurring true story)

Consolas

Here’s for example the font I’m now using and strongly recommend:

CONSOLAS

Try it in your favorite editor like Notepad++ and see by yourself the difference! It’s usually included by default, so no need to download any external font libraries.

CMD

Note that you can change Windows CMD console’s font with a quick Regedit. (See references)

FREE BONUS

notepadpp_logoGet Notepad++ for free!

Enjoy!

Sirus
sirusdark.ca

References
-http://stackoverflow.com/questions/4689/recommended-fonts-for-programming
-http://www.hanselman.com/blog/UsingConsolasAsTheWindowsConsoleFont.aspx
-http://en.wikipedia.org/wiki/Consolas
-http://www.youtube.com/watch?v=kFnFr-DOPf8

Extra Read
-http://openfontlibrary.org/
-http://understandingfonts.com/
-http://stackoverflow.com/questions/2276764/courier-new-with-slashed-0-zero-and-distinct-1-one

Advertisements

Write a comment, you will. Yes, yes!

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: