One things that bloggers love more than anything else is flair. They love to show off their Flickr pictures, which MyBlogLog visitors have visited the site recently, links to events they plan to attend, links to services or applications they use/approve and more. FeedBurner offers FeedFlare so you can add “Digg This” and “Email the Author” links to your posts and feeds. The list goes on an on. Sometimes people add too much flair.
So what should a developer of an aspiring Web 2.0 social networking site do? Create more flair!
If you’re reading this from my site you’ll notice the “What’s in your Wishlist?” banner at the top of this page. You may have also seen the “My Wishlist on WhatIWantMost” gadget in the left hand sidebar. If you’re reading this via RSS they look like this:
<iframe src="http://whatiwantmost.com/flair/ShowFlair.ashx?mode=iframe&username=dan&adsize=Content_120x600&adcontext=MyWishlist&adtype=content" width="120" height="600" frameborder="0" scrolling="no" ></iframe>
As for the code for the HTTP handler - it was easy enough. The code for the images was really easy, only a couple of lines - basically write the code to create the HTML for an image and a link. The code to display the wishlist was a little tougher, but mocking up what you want the end result to look like will help a lot. Another hint - use caching generously. Cache your data source, cache your output, cache anything else you think will help. Even if your flair is only used by a few people, your flair handler will get a lot of requests. You don’t want to be doing a database lookup everytime an image or wishlist gadget is requested and rendered. You don’t want your flair to be the one thing slowing their page loads down - because it will get removed if it does.
If you click on the banner or otherwise go to the WhatIWantMost.com site you’ll see that I still have a “coming soon” page up. The site is actually there and running, as evidenced by serving up my wishlist and the banner, but the public facing pages are not in place. I had a couple of issues I needed to clean up over the weekend - some things that even an “Alpha” site should have properly working. Sometime this week I will invite you to visit the site and provide any feedback you’d like. There are some features that haven’t been implemented yet and most of the features that are in place are still lacking in one way or another. However, it’s close enough for you to get a general idea of what I dreamed of a couple of months ago when I started this blogging series and it will serve as a good ending point. I’d hope that approximately 25 episodes was enough to whet your appetite. I know I didn’t show as much code as I could have, but I thought of this as more of a behind-the-scenes thought process type of series than a how-to. More wrap-up to come later.