In my last article on the major aspects of the "Channel", <channel> </channel> element, I promised to continue with the sub-elements of the Channel. This I will do in the next article. The time has come to explain how an RSS feed works, as it is critical to understand just what some of the RSS template commands want from us as well as our readers (in their options command.) No doubt towards the end of the series I will return to this information, however before getting into some possibilities in the template file, it is important to understand just what is going on "behind the scenes."
Years ago before the Internet, Windows and all HTML hit our PC universe, most of us were plugging away with our computers if we were programmers. I certainly was one of those nutty programmers trying to decipher the innards of Dbase II (yeah I am THAT OLD... pfffffttttttt). At that time instead of the Unicode sets and the various language sets, you were basically limited to the 256 code table of "ASCII". So what that meant was if you had special characters they sat in the Ascii table above the 128 margin (as below was reserved for English and special characters). That was great for those who wanted to see only English. But in languages such as Hebrew, not only did you have a right to left orientation, but there came to be known, for years, the infamous ALT-141 character problem. Alt-141 was assigned to a Hebrew character "mem-sofit". The problem was it was also assigned to a "back space". So instead of users getting a "mem-sofit" when they hit the character they would invariably erase the letter before! So if you were programming a database for instance, and you wanted the user to input information, you literally had to write an entire key-map utility to trap keys and to re-map them while the user was typing in order to display the correct character. It was a royal pain in the butt.
Why do I suddenly go into nostalgia of ASCII and pre-windows? You think we have come a long way? Think again!
One of the most annoying, impossible, crazy conventions is what HTML does with four specific characters. (Indeed to format this document correctly for an article I must go through a great deal more typing.) Some, and only some, of these are:
- < (less than sign) which is created by typing "<"
- > (greater than sign) which is created by typing ">"
- & (The ampersand sign itself) which is created by typing "&"
- " (quote character) which is created by typing """
(Of course, there is also the left quote, the right quote, the copyright symbol and on and on and on!)
The normal "Ampersand" which we use often "&" is not beloved by HTML and certainly RSS. Indeed try putting the innocent & into your RSS file "text" without normal conventions and the feed wont validate. You will "grrrrr" and curse up a storm, if you are like me and use the & every other word. HTML and all programmers are familiar with this "little annoyance". Most are not. After all we do see the & all over the web.
So an IMPORTANT RULE FOR NON-PROGRAMMERS. Do not incorporate a plain ampesand "&" into the "TEXT" areas of your document, or the right and left "<>" signs (which are often used in programming).
Okay NEXT piece of information which you really should understand about RSS and the RSS feeds.
You come across one of those beautiful little orange buttons and say "Oh Boy! GREAT! Here goes another feed into my Parser!" Or you are even more tricky and smart, and incorporate one of those feeds into your web pages (we will discuss how to do this in a later article!) Before you just go on your happy way, there is one term you should understand and know - CACHE.
You see every time you happily tell your parser to re-read the RSS file, it says to itself, "Okay. This owner of ours is a real nuisance. Once again we have to go travel on the Net, find the file at the web site, make a connection and download the information." And of course having no ability to tell you to have patience, it goes on its happy way. So it shakes hands with the file on the web and downloads that information. HOWEVER, a few thousand other people are also shaking hands with that same file. And every time it shakes hands it adds to bandwidth usage. Now the creator of the file knows this. What the creator also expects is that your RSS reader sets its cache to something normal like only "reloading" its memory once every 60 minutes or 120 minutes or even only once a day. That is the reason, by the way, that Parsers have a cache command, and RSS templates have Date commands, and even as you will learn a "TTL" - "time to live" command.
And if you are one of those who puts the RSS feed up on your web page, and set the cache to "0" then every single time someone hits that web page, the page has to go out to find the feed and update the contents. Thus you are adding to bandwidth usage and some RSS farms request that you are careful how and when you set your cache.
Now maybe this post should have waited, as it does not directly follow. But in our next post on sub-elements, and then following that on the "items" the nature of the text and understanding how RSS works is critical.
I hope this helps.
Previous Articles In This Series:
- The Basics of Blogging and Web Site Creation - Part One: Content Is King
- The Basics of Blogging and Web Site Creation - Part Two: Introduction To Keywords
- Part Three - Keywords, Tags, Categories - Oh Vey! I Am So Mixed Up!
- Blogging & Website Basics - Part Four: So How The Hell Do I Get Bonafide Links To My Blog?
- Blogging - Part Five: Trying to Understand the Psychology Behind It All
- Blogging - Part Six: Viral Technology - An Introduction
- Blogging - Part Seven: Article Submission As A Tool To Extend Your Reach
- Basics Of Blogging Series - Part Eight: Using Email As An Advertising Tool
- Basics of Blogging Series: Part Nine - RSS Mania Addiction An Introduction To RSS and the Terminology
- Basics of Blogging Series: Part Ten - Outline of How to Create an RSS Feed
- Basics of Blogging Series: Part Eleven - Debunking a Few RSS Myths
- Basics of Blogging Series: Part Twelve - The RSS Feed Template File
- Basics of Blogging Series: Part Thirteen - The Basic Elements in the "Channel" Element
Tags: email, technology, blogging, web site creation, content, writing, books, Search Engines, SEO, site rank, page rank, RSS, Podcast, VideoCast
Categories: technology, internet, Basics of Blogging Series, What Is RSS? Series
Basics of Blogging Series: Part 14 - How the RSS Feed Works & Some Programming Constructs