Answer by Leonid S. Knyshov, CEO of a customer referrals startup, consulting product manager:
We use monospace fonts to keep code aligned.
Courier is just one of many monospace fonts. They are also called fixed-width fonts. Consolas is the default font in Visual Studio, and there are even better fonts for programmers.
We like fonts where:
- 0 cannot be confused with O
- Punctuation characters like "," are bigger because they are far more important in programming than in daily use
- Brackets are distinct
- "1," "I," "l," and "|" cannot be confused (that is 1, i, L, and the pipe sign)
This leads to fewer bugs. Mistyping "," as "." will often break your code and at least lead to unexpected behavior. The same is true for ":" versus ";" and so on.
More questions on Computer Programmers:
TODAY IN SLATE
Justice Ginsburg’s Crucial Dissent in the Texas Voter ID Case
The Jarring Experience of Watching White Americans Speak Frankly About Race
Here’s Just How Far a Southern Woman May Have to Drive to Get an Abortion
The Most Ingenious Teaching Device Ever Invented
Marvel’s Civil War Is a Far-Right Paranoid Fantasy
It’s also a mess. Can the movies do better?
Sprawl, Decadence, and Environmental Ruin in Nevada
An All-Female Mission to Mars
As a NASA guinea pig, I verified that women would be cheaper to launch than men.