Sunday, February 12, 2006
One of my pet peeve(s)
Arg!! Just look at the preceeding post, and you'll see my moment of silence is followed by the line "1 Comments" (assuming no one else chirps in between my now, and your now). C'mon guys, this isn't rocket science. English has this concept called "plurals", and it doesn't apply to the number one. Nope, never has, and never will. Even my debug statements get this right. Watch how simple it is:
Code written by lazy people:
printf("%d comments", numComments);
Code written by people with a clue:
printf("%d comment%s", numComments, numComments == 1 ? "" : "s");
Please, please, please get it right!
(And don't use localization as an excuse - if you're going to the effort to localize an app, you should have taken care of this a long time ago. Yes it takes two strings instead of one. Get over it.)
Okay, I'm officially too uptight. Rant over.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment