How To Stumble
A blog about StumbleUpon

  • Home
  • Stumble, How To
  • Wordpress Stumble Plugins

StumbleUpon My StumbleUpon Page

Does Stumble Have a Singular Plural Bug

September 22nd, 2007 admin

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

sup.JPG

FAN

sus.JPG

Stumble it!

Posted in Stumble Funnies | 2 Comments »

  • You are currently browsing the archives for the Stumble Funnies category.


  • Add A Popular Stumbler
    For more widgets please visit www.yourminis.com

  • Pages

    • Stumble, How To
    • Wordpress Stumble Plugins
  • Archives

    • October 2007
    • September 2007
    • August 2007
  • Categories

    • Advanced Stumblers (4)
    • Beginner Stumblers (4)
    • Intermediate Stumblers (5)
    • Non Stumbler Yet (2)
    • Stumble For Webmasters (3)
    • Stumble Funnies (1)
    • Stumble News (3)

How To Stumble is proudly powered by WordPress | Bob |