11.17.2008

DOM

Reading through these documents and chapters reminds me of my years of bartending. A lot of my customers were the locals that would come in after their shift to unwind. They were all very friendly, and it always made for interesting conversation. But as I got busy with paying jackpots and such, they would tell their stories to each other. When I would have time to go back to listen in, there was very little I could understand. Because they weren’t telling me the story, they would use the language they were more comfortable with. I did learn a bit over the years, so here and there I pick out something I understood. Sometimes I could string several things together and at least have an idea about what was so funny. But usually I just ended up scratching my head as they laughed at my attempt to follow along.

These standards are important for venders. If they want people to use their product, they need to make sure it works correctly with anything their customer might want to look at. They all have their differences, and the more they follow standards, the easier time web developers will have using the browser.

It is important to follow the standards for DOM because it will allow you to use scripts on many documents in many browsers with less chance of errors and problems. DOM is not only used by JavaScript, so following recommendations ups the chances for all items you add to a site playing together nicely.

I don’t love it yet. So far I am at dull headache with it, but it is starting to make sense. Hopefully it will continue to make sense as I try to use it. I am not overly hopeful on that though.

3 comments:

jason_hoag said...

I really enjoy your analogy of bar tending and the DOM! You summed it up nicely.

In a way, I guess, we could compare the DOM with bar tending and restaurant type work. (I have done both.) You can string together what your customers are chatting/laughing about (strings) and enjoy sharing a few common laughs with each other (DOM), with much laughter in a bar everyone is curious what is so funny (all the browsers) and want in on the joke. I guess the bouncers are the W3C, or once referred to as "the validation police."

Clear as a white Russian? I never thought about it this way. In some sort of twisted way it does make sense.

Rachael said...

"The validation police" strike again. The W3C as the bouncers of the web, I like that.

I think you've hit on something important when you talk about more than just JavaScript using the DOM. If there's one standard, it can be used by multiple applications and work the same for all of them. That definitely makes it seem like something we should know about.

I also agree on the "dull headache" part of all of this. I think the DOM makes me feel a little bit DIM.

Anthony Gumbel said...

Someone else who agrees with most of the rest of us. DOM is confusing. Hope it will become easier to understand. Awesome story at the beginning :D