Triết lý sống

Phàm làm việc gì trước phải suy xét đến hậu quả của nó
Hành động của người quân tử là giữ tĩnh lặng để tu thân, cần kiệm để dung dưỡng đức độ. Không đạm bạc thì không thể có trí tuệ sáng suốt, không yên tĩnh thì không có chí vươn xa. Học thì phải cần yên tĩnh, muốn có tài năng phải học; không học thì không biết rộng, không có chí thì việc học không thành.

Mong muốn lan man thì không thể nảy sinh cái tinh túy, vội tìm cái hiểm hóc thì không nắm được cái thực tình. Thời gian tuổi tác qua nhanh, ý chí cùng ngày tháng trôi đi trở thành khô héo, phần lớn không tiếp cận được với thời đại, rồi buồn tủi nơi lều nát, sao còn khôi phục lại kịp cái chí hướng được nữa !

Wednesday, December 29, 2010

Atom vs. RSS Feed

Do You Need to Bother About These Two Feed Formats?

There’s a debate floating among coders about the Atom feed and its pros and cons against RSS. If you have been researching the RSS technologies some time ago, you have probably stumbled across such term as Atom. If you’re wondering what Atom technology is and how does it relate to RSS feeds, then spare a few minutes to find out.

Atom is simply a parallel technology to rich site summary (RSS). Atom is an XML based file format that has a main purpose of syndicating web content, like news headlines, blogs or websites.
Atom Development History

Until Atom feed, everyone was using RSS to syndicate content online. However, there was a group of people who analyzed RSS and found out that it’s not perfect and that the changes can be made. Community members could not do any changes to the RSS format. First of all, it was not open standard. And second of all, RSS 2.0 was copyrighted by Harvard University, which stated that no significant changes can be made to this format.

In 2003, a group of people gathered to discuss the deficiency of RSS format. They decided that the new format could be more advanced than RSS. They tried to develop a format that would be used and freely extensible by anybody. Later, more and more developers joined the community to help building a more robust syndication format.

After the second Atom version 0.3 was released, it became very popular. One of the main reasons that helped to widespread this new format was Google. Google started using Atom for its services: Blogger, Google News and Gmail.

The main intention was to allow developers build applications for web syndication. Atom was designed to offer better functionality than RSS technology. Here are few shortcomings of RSS that Atom developers address:


RSS 2.0 might contain plain text or escaped HTML, but it can’t indicate which one of these two is provided. Atom has the ability to clearly specify the type of content (plain text, escaped HTML, XHTML).


RSS 2.0 has a element that should describe the feed’s message fully or partially. It is not clear whether the message contains complete content or not. Atom has separate elements called and where summary is used for accessibility issues if the content provided is non-textual.


RSS 2.0 is copyrighted. It means that no one can contribute to the further development and upgrade this format. Atom is open source. Anyone can offer ideas, help building and extending this freely available format. This is one of the reasons why Atom id preferred over RSS by many developers.
RSS autodiscovery uses non-standard variants. Atom standardizes autodiscovery so the newsreaders can auto-subscribe. When you enable autodiscovery for your feed, browsers and newsreaders can automatically detect your web feed and make it easier for a user to subscribe to it.

If you want to allow your readers to automatically detect your feed, put this line between and tags on every page of your website:


When you put autodiscovery line to your web pages, web browsers, like FireFox or Safari automatically detect that you are using XML feed and inform users about that. You should include autodiscovery into your site. Despite the fact that RSS is not standardized, you can also use this feature with RSS feeds too.

There are actually more RSS and Atom pros and cons explained at the Sam Ruby’s (a guy who initiated Atom development) website where he compares RSS and Atom.
In Conclusion

The debate about RSS and Atom formats is mostly technical. For web application developers Atom might be a better solution as long as it gives programmers more flexibility and offers more options than RSS for creating various web applications.

If you’re not planning to create complex application, Atom and RSS specifications might not be extremely important to you. One thing to realize is that both RSS and Atom formats are widely supported by almost all RSS readers. So in either case, your visitors will be able to read your feed.

No comments:

Post a Comment