Does Stumble Have a Singular Plural Bug
I have noticed by chance that word “Fan” follows the number of fans for some stumblers, but for other stumblers the word “Fans” follows the number of fans. My be this is not a big deal and it does not even worth a blog post but curiosity kills the cat!
Ok after some investigations I think I know what is the problem .. it is most likely a bug in SU was caused by wrong comparison in PHP.
I think what happened is that the programmers in SU are using some thing like this to append the word “Fan” or “Fans”
<?
if ($fans > 1) {
print “fans” ;
else {
print “fan” ;
}
But the issue is that the programmers left the variable $fans without stripping the coma “,” so the comparison will be done on the number to the left of the coma “,” the numbers to the right will be ignored in this case .. so in this case stumblers with 2-999 fans and +2,000 fans are ok your will see “fans” follows their fans number .. But stumblers with 1,000-1,999 fans will see “fan” follows their fans number.
FANS
FAN
|
My StumbleUpon Page


September 27th, 2007 at 7:19 am
1. The reason for someone having ‘fan’ or ‘fans’ is a simple mistake on the coder’s part.
one fan
two fans
ONE (thousand) fan
if it sees one - it puts fan (singular)
if it sees anything other than one (plural)
2. Thank you for not including me in the most popular group. I don’t stumble or give something a thumb’s up to be popular. I do it because I enjoy it.
Have a Blessed day,
~betsy~
September 27th, 2007 at 5:42 pm
Thanks for your entry.
Any stumbler can add himself to the widget through the link “Add a Popular Stumbler”
I have added you to the database and the system will keep checking your fans numbers daily .. whenever you have fans more than #10 on the list, your name will be on the list.
Best regards