View Review Details


Book:   Building Tag Clouds in Perl and PHP
Subject:   case insensitive bug && colors are useful
Date:   2007-01-04 16:07:13
From:   Stolkin
Rating:  StarStarStarStarStar

I noticed the code says that it treats the tags as case insenstive, e.g. the Perl code uses
uc(). However, in the example of words from Genesis there is both "And" as well as "and". So there seems to be some bug.


Also, there is an advantage to using different colors. Often a tag can be a phrase rather a single word, and often many tags will be about the same font size -- different colors help to distinguish them. But the colors should not be
truly random; the code should prevent adjacent tags from getting the same color.


See larger cover