James O'Neill's blog

Windows Platform, Virtualization and PowerShell with a little Photography for good measure.

Blogs

Programming RSS - a complete reader in just 90 lines of code !

  • Comments 8
  • Likes

I know - platfrom folks shouldn't do code. But yesterday I wrote my first "proper" program in nearly 2 years. My university lecturers would hate me to call VB "proper" programming: but although I've done a some scripting I haven't written anything with a user interface since writing a little Smartphone App back in '04. Not only do I feel rusty, but I thought I'd try VB Express  for the first time

After reading the RSS team Blog I wanted to see how easy it was to use the API for RSS,  that is enabled by IE7. How difficult would it be to code with an updated language, and programming environment, and a new API ?  Astonishingly easy as it turned out. After 3 hours work I had a tool which will

  • Show your feeds and downloaded items in a tree view with unread items in bold (22 lines)
  • Shows item selected in the tree with its image, time stamp, and links to it and its feed (20 lines)
  • Let you mark the selected item as read or delete it (35 lines)
  • Resize properly (5 lines)
With 8 more lines of declarations and start up that’s 90 line of code. I doubt it will win any prizes, but it is a viable reader that can be printed on two sides of a page.
Here's what it looks like.


So anyone who writes RSS software or wants to - leave the subscribing and downloading to IE, and get on and write something great on top of it. Newsgator's CTO already gets this

Comments
  • Small correction, Greg Reinacker is the CTO, JB Holston is NewsGator's CEO

  • Thanks Gordon, I've edited the text.

  • would love to see the 90 line! any chance? would be great sample code to encourage use of the RSS API. I do have IE7 installed so am little familiar with it.

  • Where can I download this program from?

  • Are you gonna post the code then ? James, only Scobelizer has asked ;)  and I would be interested and a few more, I guess.  

  • To answer the last 3 questions, I'm happy to share the code. It will be the first time I have done so, therefore I am checking with my management that it is OK. I hope that it will be available on Monday.

  • It took a little longer than planned ... but it's now here http://blogs.technet.com/jamesone/archive/2006/05/09/427793.aspx

  • PingBack from http://peewitsol.wordpress.com/2006/05/10/rss-reader-in-90-lines-of-code-available/

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment