Friday, April 22, 2011

Spam Blog

SPAM

In this time of the Internet era, almost everyone is familiar with the word ‘spam’. Although the word ‘spam’ has a short history as it has practically been used since 1990s, the social and political impacts that it has brought to this globe were wide and strong that it became one of the social phenomenon of our century. Then what is exactly the word ‘spam’ means? Wikipedia describes spam as “the use of electronic messaging systems (including most broadcast media, digital delivery systems) to send unsolicited bulk messages indiscriminately.” However, from its birth till now, the meaning of spam has been changing and broadening as it steadily went along with dynamic and ceaselessly changing Internet era.

HiSTORY

Internet and spam

Although there is a record of mass distribution of unwanted commercial messages before the invention of the internet enabled by American telegram in the late 19th century, the invention of the rapidly facilitated the activity of spamming, creating huge number of spammers, spamming techniques, spamming softwares, anti-spamming devices, and new legislations on spamming etc.

The first record of Internet spamming happened in 1978 when a guy named ‘Gary Thuerk’ sent commercial messages to 393 receivers on ARPANET. 10 years later, in 1988, the first form of chain letter, a letter that forces random recipients to copy and spread it to other random people, appeared with the famous title ‘Make Money Fast’. The practice of spamming, officially and professionally used for commercial purpose, began from 1994 when Laurence Canter and Martha Siegel, a couple lawyers, started spamming immigration law service advertisement through Usenet. Although there were many condemning voices towards the couple, they defended themselves by claiming freedom of speech. Within a few years, from mid-to-late 1990s, spammers began to actively use e-mail as their medium for spreading spam messages. From this time, the practice of spamming had a major increase in its numbers, becoming one of a prominent social phenomenon, causing various social issues, problems, and debates regarding spam. Today, spamming is actively practiced throughout various Internet media and the number of spammers is constantly growing that one can easily contact with spam as soon as he or she enters the Internet.

Why do we use the word ‘spam’?

The word ‘spam’ actually derived from the spam canned luncheon meat that we all know. In the TV comedy show Monty Python’s Flying Circus, broadcasted in 1970, there was a spam sketch which illustrated cafeteria scene with Viking patrons sitting at a table. Every single dish in the cafeteria had spam meat inside so that waiter and customer kept repeating the word ‘spam’ in their conversation. During the conversation, Viking patrons sang ‘spam’ repeatedly, thus distracting the conversation.


In the very early stage of chatting network when the Internet was connected through phone lines, there were some users who filled the entire page with the word ‘spam’ or the quotes from Spam Sketch with the purpose of distracting the conversation. People started calling this kind of act, spamming. And today, according to the New Oxford Dictionary of English, spamming refers to "Irrelevant or inappropriate messages sent on the Internet to a large number of newsgroups or users", embracing broader context of its usage.

MEDIA/USAGE

Although e-mail spamming is the most widely known, spammers throughout the world utilize various media to spread their spam for various purposes. Their purposes vary from commercial reason to noncommercial reason such as religious and crime activities. Also various internet media such as instant messaging, Usenet newsgroup, Web search engine, blogs, Wikipedia, Online ads, mobile phone messaging, Internet forum, fax transmissions, social networking site, and file sharing network are utilized by spammers for way to spread their spam messages.


E-mail is one of the most widely used medium for spammers. Through e-mail, large amounts of spam messages are sent to random people everyday, all around the world. These unwanted messages mostly carry commercial contents but also sometimes used for noncommercial reasons.

Zomebie computers are computers that are infected by virus. These infected computers can be controlled by remote areas. Therefore, to avoid their identities being exposed, spammers use ‘Zomebie networks’ to send e-mail spam.

Before e-mail spamming became popular, spamming targeted for Usenet newsgroup was prevalent. At this time, spamming was more defined as repeated posting of similar messages.

Instant messaging spamming is another prevalent spam form today. Since instant messaging does not have firewall protection, a device created to protect and filter unauthorized information from the Internet network, it is recently gaining spammers’ attention.

Forum spamming targets Internet users by spreading redundant messages all over the Internet forums, mostly for commercial purpose. Tactics used for forum spamming is providing external links that link Internet users to the desired sites, thus increasing the traffic to the sites. Forum spamming is mostly done by automated ‘spambot’, a computer program designed to automatically send spam mails.

Along with forum spam, many spammers use online game channel. Online game messaging spamming is mostly targeted for game players with the purpose of selling game items.

Spamdexing is a method of altering HTML pages to be placed on the high rank in search engine relevancy lists. This way, the page has increasing chance of visitors. Spamdexing is enabled by black hat SEO technique. Black hat SEO(Search Engine Optimization) technique is the method of altering HTML pages so that they are placed on the higher part in the search results. Link farms and keyword stuffing are two examples of black hat SEO. Link farm is a group of websites that are all hyperlinked to each other. Keyword stuffing is a practice of narrating keywords in content and meta tags so that they get higher position in relevancy list. However, spammers usually hide those keywords by placing them behind the picture frame or coloring them with background color so that the websites can have irrelevant content from the keywords. In short, spammers utilize these kinds of techniques to make their commercial sites more visible on the search engine.

spammers also utilize video sharing sites to spread spam messages. They upload videos that have commercial contents and link them with thumnail images and information, irrelevant from the content, that interest viewers, thus tricking them to see the advertisement.

Furthermore, spammers are utilizing various Internet media such as blogs, wikis, and guestbooks, where user contributions are possible.

As seen above, most spams are aimed for their advertising purpose. However, there have been many other purposes that spamming is practiced. Mostly recognized ones would be religious, political, and criminal spam.

IMPACT/SOCIAL ISSUE

crime

As mentioned above, spamming has also been practiced for many malicious purposes other than commercial purpose. Spreading viruses and Trojan horses to control the system, steal information, or destroy the system is one of the malicious use of spam. Trojan horse is a software that is seemingly fine but actually designed to steal or harm users’ computer systems.

Not only spreading viruses, but spammers also spread fake messages that trick people, mostly who are unfamiliar with the Internet, to steal their sensitive information such as password and bank account number etc. This strategy is called ‘phishing’.

political issue

Although it seems like many people long for legislations that prohibit spam, many people oppose the intervention of government indeed. Mostly, the people who oppose intervention of government in anti-spam action value the freedom of the Internet. They are afraid that the freedom of the Internet, which was possible by the lawlessness, will be restricted when the government has control over it. Therefore, the extent of government intervention concerning the worsening spamming activities is still on-going political discussion.

Indeed, some laws trying to ban spam activities have been purposed and practiced such as CAN-SPAM Act of 2003, which enabled ISPs to fight against spam. However, they failed to successfully prohibit spamming but rather facilitated it by making part of it legal.

CONCLUSION

The features of the Internet such as the freedom of communication, wide distribution of information, and millions and billions of participants all over the world, have created new word, ‘spam’. Those features of the Internet were perfect conditions for people who want to gain money, express their ideas, or influence other people by sending bulk of unsolicited messages all over the world. This activity of mass distributing redundant and unwanted messages to random people through the Internet, is aggressively increasing and seemingly unstoppable. People make laws and anti-spam filtering softwares to prevent spam. However, spammers also devise new creative ways to avoid them. This cycle will continue on since the computer technology is developing on both sides and many new forms of Internet media are created everyday, providing new field for spammers to influence upon.

REFERENCE

1. http://en.wikipedia.org/wiki/Spam_(electronic)

2. http://en.wikipedia.org/wiki/Zombie_computer

3. http://en.wikipedia.org/wiki/Spamdexing

4. http://en.wikipedia.org/wiki/Search_engine_optimization

5. http://en.wikipedia.org/wiki/Spambots

6. http://en.wikipedia.org/wiki/Phishing

7. http://en.wikipedia.org/wiki/Trojan_horse_(computing)



Thursday, April 21, 2011

Hulu




Hulu, created in 2007, is one of the leading website and over-the-top (OTT) subscription service that provides on demand streaming of TV shows, webisodes and other popular media such as trailers, clips and movies.



What really makes Hulu shine is the amount of content that it provides. From its vast resources, it brings together a huge selection of videos from over 260 content companies including media giants such as FOX, NBCUniversal, ABC, Criterion, A&E Networks, Lionsgate, Endemol, MGM, MTV Networks, Comedy Central, National Geographic, Digital Rights Group, Paramount, Sony Pictures, Warner Bros., TED and more.

It is unsurprising that is able to legally provide media from so many companies because it is a joint venture of NBCUniversal (Comcast/General Electric), Fox Entertainment Group (News Corp) and Disney-ABC Television Group (The Walt Disney Company) with funding by Providence Equity Partners.

To top it off, Hulu is constantly evolving and add more features to make its videos more accessible and easy to use. Currently only requires Flash player to view (which most computers and some smart mobile devices have). Now there is Hulu Plus, a premium service that greatly amplifies the satisfaction that Hulu provides. Besides offering more content, Hulu Plus offers high definition viewing of your favorite shows from a variety of electronic sources.

Some of the many popular full TV shows that can be found on Hulu include The Simpsons, 30 Rock, Bob's Burgers, Modern Family, Glee, The Office, Jersey Shore, The Daily Show and many cartoons or animated series as well. Additionally, Hulu offers a wide variety of full movies and documentaries.




The name Hulu comes from Chinese characters which mean a "bottle" or "gourd" or "interactive recording". As the company blog explains, "...in ancient times, the Hulu was hollowed out and used to hold precious things. The secondary meaning is "interactive recording." We saw both definitions as appropriate bookends and highly relevant to the mission of Hulu" Hulu's mission statement is: "Hulu's mission is to help people find and enjoy the world's premium video content when, where and how they want it. As we pursue this mission, we aspire to create a service that users, advertisers and content owners unabashedly love."

Personal Opinion:

I personally love Hulu because as a poor college student, I can't or am unwilling to pay for the amount of content that I watch online. Thus I have spent many frustrating hours scouring the web for free streaming videos of shows and movies. Most times the quality is terrible or the page is filled with ads and/or viruses. Hulu allows me to find and watch videos quickly, easily and with good quality.

I think that the introduction of a premium account was very smart on their move as now there is a strong fan based that is somewhat addicted to the quality service that they offer. For $7.99 a month, it is more than affordable especially if you don't pay for cable television anymore.


References:
http://www.hulu.com/about
http://en.wikipedia.org/wiki/Hulu
http://www.crunchbase.com/company/hulu

Wednesday, April 20, 2011

Voice over Internet Protocol (VoIP)

What is Voice over Internet Protocol?

Voice over Internet Protocol (VoIP) allows for the delivery of voice communications and multimedia sessions over Internet Protocol (IP) networks like the Internet. VoIP refers to communication services that are able to be transported through the Internet, instead of through the public switched telephones network, through which regular phone calls are transmitted. VoIP allows for users to send voice, fax, SMS via internet and has been flourishing since 2004. Essentially VoIP has allowed for people to make calls using broadband Internet connections and has made it easier and cheaper for people to talk around the world.



How does it work?

VoIP works through the transformation of telephone signals to digital signals and vice versa. VoIP allows people to make calls from a personal computer, telephone or any internet location. The steps involved this conversion include, “signaling and media channel setup, digitization of the analog voice signal, encoding, packetization, and transmission as IP packets over a packet-switched network.” The same steps take place on the other side but in reverse order – “the reception of the IP packets, decoding of the packets and digital-to-analog conversion reproduce the original voice stream.” There exist three types of VoIPs: IP phones, software VoIP, and Mobile and Integrated VoP.

VoIP Today



Of the VoIP’s the exist, Skype is the most identifiable and common. It is used by most teenagers and college students to communicate freely as well as by companies. It had become a popular form of making long distance calls as well as keeping in touch.. Software VoIP can be further broken down into three subcategories: web calling, voice and video instant messaging and web conferencing.  The great thing about VoIP is that it is available wherever internet is available. With smartphones becoming common commodity, smartphones and internet devices can be used for VoIP and calls can often be made free of charge. Portable devices that aren’t smartphones are also able to text and make calls over WIFI and 3G.

With phone apps becoming more popular, many apps have been developed around the idea of VoIP, allowing users to receive and make free calls, texts and picture messages. The app that I have on my phone is called TextFree and I have been using it since I first got my phone. Because it allows for free text messaging, I don’t have to worry about paying $20 a month for unlimited texting or even making calls because the app provides both.


Quality of service

While for the most part VoIP is cheaper than paying for a phone plan, communication on the IP network is inherently less reliable in contrast to the circuit-switched public telephone network, because it does not provide a network-based mechanism to ensure that data packets are not lost, or delivered in sequential order. Some of the drawbacks are that there exist no Quality of Service guarantees and sometimes face problems like jitter and latency.


Adoption of VoIP for the Consumer Market

2004 marked the beginning of VoIP for mass consumers. Broadband internet access began to be used for calls and transfer of communication information. VoIP phone companies began providing inbound and outbound services using Direct Inbound Dialing and offered unlimited calling at a flat service fee.  


Adoption of VoIP for Corporate Use

VoIP provides bandwidth efficiency and therefore companies and business, seeking to lower costs, have begun to implement VoIP systems. Solutions aimed at businesses have taken on two forms, one for small to medium businesses and one for medium to large enterprises. These solutions have brought together all forms of communication (texts, faxes, phone calls, etc) to be transmitted through any form of internet connection. One of the benefits of VoIP to companies and businesses is that voice and data communication can be transmitted over one network. Thus, less infrastructure is needed for communication.


Benefits

As aforementioned, some of the benefits of VoIP include a reduction in infrastructure and therefore lower infrastructure costs, lower operational cost. In addition, VoIPs are intuitive and easy to use for all users and allow users to multitask while using VoIP, whether on a call over the computer or on a WIFI/3G phone. In addition, VoIP allows for phone calls to be routed over data networks already in place, instead of creating a need for new ones. Special features that normally have a small fee are also free under VoIP.

References:

Tuesday, April 19, 2011

jQuery





jQuery was released in January 2006 at BarCamp in New York City and is a cross-browser Javascript library. The reason users fall in love with with this free, open source software, is because of its simplicity for scripting in HTML. jQuery's syntax is designed to make it easier to selected DOM elements, event handling, animating, and Ajax interactions. jQuery is designed to change the way to you write JavaScript. With jQuery, dynamic and powerful web pages are possible.

Features
  • Dom traversal and modification
  • Events
  • CSS manipulation
  • Effects and animation
  • Ajax
  • Extensibility
  • Utilities
  • Cross-browser support
Usage Styles
  • Factory method: uses commands that are chainable
  • Utility function: using prefixed functions and do not work on jQuery objects
Plug-ins



  • Above is an example of a jQuery plugin called jQuery Cycle. It cycles through a slideshow of images for you when you add in the code to your webpage.
  • Due to the architecture of jQuery, developers can create plug-ins to extend its functionality. There are thousands of plug-ins ranging from web services, dynamic lists, animation, drag and drop, cookie handling, and Ajax helpers that exist on the web right now.
  • The important source of jQuery plug-ins is the sub-domain of the website. There are tutorials on the jQuery official web page that explain how they work and how to incorporate them into your website.
Open Source Software
  • OSS is a computer software available in source code where it is free to distribute. OSS is often developed in public collaboratively. Most OSS is user-generated and sometimes can be available in a public domain. Github is a very popular website for OSS.
  • The free software movement was launched in 1983 and in 1988, a group of people determined that the software should be called open source software.
  • This is a great way for people to get their work and code out. Companies using open source software can establish the industry standard and gain competitive advantage. It is known to be reliable because many coders can chip into making the perfect source code.
  • jQuery is an example of an Open Source Software, and users from around the world can chip in or take part of the jQuery library.
jQuery and I
  • I use jQuery frequently and have it in part of my portfolio site. I use cycle, slide, and lightbox. These plug-ins allow for a very smooth transition between my pages. Open source software is the way to go because it allows user to generate and share their code. With this people can create a name for themselves and also help many enhance their webpage.
References
  • http://en.wikipedia.org/wiki/JQuery
  • http://docs.jquery.com/How_jQuery_Works
  • http://en.wikipedia.org/wiki/Open-source_software
  • http://www.w3schools.com/jquery/default.asp

Google




HISTORY

Google was founded by Larry Page and Sergey Brin. It first started in January 1996 as a research project when they were both PhD students at Stanford University in California.

While the conventional search engines ranked results by counting how many times the search terms appeared on the page, Page and Brin pictured a better system that analyzed the relationships between websites. They called this new technology PageRank. It determines a website’s relevance by the number of pages and the importance of those pages that linked back to the original site.

Page and Brin original nicknamed their new search engine “BackRub,” because the system checked backlinks to estimate the importance of a site. Eventually, they changed the name to Google, coming from a misspelling of the word “googol.” At first, Google ran under the Stanford University website, with the domain google.stanford.edu.


EXPANSION

Google was granted a patent for its PageRank mechanism. Overtime, Google found its way into everyday language. The verb, “google,” was added to the Merriam Webster Collegiate Dictionary and the Oxford English Dictionary, noted as “to use the Google search engine to obtain information on the Internet.”

Google also expanded by acquiring many companies. Google focused on small venture capital companies.

Click here for a list of Google acquisitions: http://en.wikipedia.org/wiki/List_of_acquisitions_by_Google

Some major acquisitions include: Google purchased Earth Viewer that gave a 3-D view of the Earth. Google later on renamed it Google Earth. Another example, Google purchased GrandCentral and it is later changed over to Google Voice.

Google also partnered with other organizations ranging from research to advertising. One area of expertise was mobile device. Google launched “Adsense for Mobile,” taking advantage of the emerging mobile advertising market.


ADVERTISING

99% of Google’s revenue is generated from its advertising programs. With the technology aquired from the company DoubleClick, Google can determine user interests and target advertisements so they are relevant to their context and the users. Google Analytics allows website owners to track wehre and how people use their websites, for example, looking at click rates for all the links on one page.

Google’s AdWords allows advertisers to display their advertisements in the Google content network, through either a cost-per-click or cost-per-view scheme. It’s sibiling device, Google AdSense, allows website owners to display these advertisements on their websites, and earn money every time ads are clicked.


SEARCH ENGINE

Google Search is the company’s most popular service. Google links to billions of web pages. Users can search for the information they need by typing keywords. Google Search provides at least 22 special features beyond the original word-search capability. These include synonyms, weather forecasts, time zones, stock quotes, maps, earthquake data, movie showtimes, airports, home listings, and sports scores. There are special features for numbers, including ranges, prices, temperatures, money/unit conversions, calculations, package tracking, patents, area codes, and language translation of displayed pages.


Google’s homepage also includes a button called “I’m Feeling Lucky.” When a user clicks on the button, the user will be taken directly to the first search result. The idea is so the user could be taken to the perfect result without going through the search results. However, it is “I’m Feeling Lucky” button has retired due to the introduction of Google Instant searching.


PRODUCTIVITY TOOLS

Google also released many online productivity tools. Gmail, a free webmail service was made available to the general public on Feb. 7th, 2007. The service currently offers over 7400 MB of free storage space.

Google Docs is also another part of Google’s productivity suite. It allows users to create, edit, and share documents in an online environment, very similar to Microsoft Word. The suite includes word document, presentation, spreadsheet, form and drawing.


GOOGLE PRODUCTS

Along with its most famous search engine, Google also has a series of products such as desktop, mobile and online products.

- Google Chrome-web browser available in Windows, Linux and Mac OSX

- Google Desktop-desktop search application that indexes emails, documents, music, photo, chats, web history and other files.



- Google Earth-virtual 3D globe that uses satellite imagery, aerial photography and GIS.


- Gmail-free, advertising-supported webmail.









- Quick search box-a search box that allows easily viewing installed applications or performing online searches.


- SketchUp-Modeling application to sketch simple 3D structures.

- Google talk-application for instant messaging.

- Google images-image search application

- Visigami-image search application screen saver that searches files from Google images, Picasa and Flickr.


MOBILE

Google also collaborated with multiple phone companies to create Google phones. Many of the features on Google phones are linked back to each user’s personal account. Many of these features include Buzz, calendar, gmail, etc.


REFERENCES

http://en.wikipedia.org/wiki/Google

http://en.wikipedia.org/wiki/Google_Search

http://en.wikipedia.org/wiki/List_of_Google_products

Internet Protocol Suite: How we get to the WWW



The Internet Protocol Suite, also known as the TCP/IP model, provides end-to-end communication specifying how data should be formatted and transmitted. To understand this better, one must first know a bit more about layer-based communications.


Communication on the Internet is based on the principle of layer-based traffic. Each layer receives information from the layer above it and wraps what is known as a header around this packet of data. Fundamentally, each layer should not care what type of data is being sent through it.



It might be easier to think about it as a if you are work for a company that receives a great deal of mail. To send a letter to another someone at another company I give the letter to the mail facility at my office. From there, they would put on their stamp and send it through the mail to the other company. The whole process would reverse itself on the other end so that the recipient gets the letter.


Essentially, once I put a valid address on the envelope, I no longer have to worry about how it gets there, the lower levels will take care of it. I just wait for the response. Just the same, the post office does not need to worry about the content of what is being sent.


Because of the complexity of the Internet in general, it is common for packets of data to get lost or mis-transmitted. It is because of this that sending large streams of data can be difficult. The TCP protocol provides a link-to-link communication. In this protocol, each link will send acknowledgement packets that data has been received. In this way, the small packets that make up a TCP transmission can be resent very quickly without any notice on the user’s end.




The IP layer is the main addressing layer. It is how each device on the Internet can address any other device. Currently in IPv4 there can be 4,294,967,296 distinct addresses on the internet (with some tricks by ISPs and WANs, this can be stretched to meet current demands). IPv4 was developed in 1981 and it was never imagined that we would ever run into a shortage. We have. IPv6 is currently being introduced in hardware and operating systems to deal with the shortage. IPv6 has space for 2^128 addresses instead of IPv4’s 2^32.


Hopefully, you now have a better understanding of the underlying networking aspect of the world wide web. TCP/IP is integral to things such as p2p, web-browsing, and email.



Resources

http://www.garykessler.net/library/tcpip.html

http://www.cisco.com/univercd/cc/td/doc/product/iaabu/centri4/user/scf4ap1.htm

http://en.wikipedia.org/wiki/Internet_Protocol_Suite

Moving CSS Forward


First, all developers are very thankful for CSS. No question about it.


Prior to CSS, all the visual formatting of a webpage was coded directly in the HTML markup. For a website to have a unified theme, each page would have to repetitively define the layout and color scheme. Changing the look and feel of the website, however, was a nightmare. Changing just one color in your website’s theme would require editing every page of your site.


Luckily, CSS solves that.



CSS Then


CSS was proposed to tackle the very issue described. By separating the presentation from the content, you could define the visual formatting of your site once and link to it externally from different webpages. Editing the style of your website would only entail editing the external stylesheet. This process also naturally uncluttered the HTML markup. By stripping the code that formatted the pages visually, only the content remained. You could then place content in the HTML tags that were proposed to hold such content, i.e. use table for table/chart content as opposed to formatting the layout. Separation of the content and presentation allowed for easier maintenance, for when you wanted to fix the page’s content, you looked in the HTML, and when you wanted to fix the layout, you looked in the stylesheet.

Additionally, you could style all tables at once, or all paragraphs at once, or target specific headings or lists. Via inheritance, grouping, and the various ways to select elements in CSS, you would only need to define a particular style once. This solved the previous repetition problem of having to, for example, manually specify that all the text in the tables are red for every table that you encountered.


One webpage could also draw sources from multiple style sheets, allowing for greater modularity and flexibility with your website designs. CSS also allowed for different mediums of display to have different presentations. For example, you may wish to format the printed version of your website differently than the screen (monitor) version.


Another issue that CSS addressed was web accessibility. Visually impaired users rely on their computer’s screen reader technology to read the page’s information back to them. Suppose you had an image that described some product’s features as text inside the image. The screen reader would be incapable of reading the text from the image, and a visually impaired person would not be able to learn about the product’s features. It would be repetitive for a non-visually impaired user to see text on a webpage that listed the same features shown on the image, but this repetitive list would be necessary for the screen reader to read the information back to the user. The solution is once again CSS, where you could simply hide or remove the presentation of the text from the website. Then, a non-visually impaired user would not see the content, but the content would still exist in the HTML markup for the screen reader to process.


There are many advantages that CSS brought to web developing. Despite all the issues CSS addressed, there are still more problems. It is however, in the areas of weakness that lie great opportunities for improvement.



CSS Now


One of the biggest hurdles that CSS is still facing today is browser support. It has certainly improved from a decade ago. Before, the nature of the problem was that browsers did not fully support all the specifications of CSS. Version 1 of CSS (CSS1) was completed in December 1996, and it wasn’t until March 2000 that one browser (Internet Explorer 5.0 for the Macintosh) supported over 99% of the specification (and supported it correctly). Though other browsers at the time “supported” CSS, they were severely incomplete and had a lot of bugs. One of the biggest crises that CSS faced was in the way that several versions of Internet Explorer implemented the box model. IE interpreted the width definition incorrectly, and being the dominant browser, websites catered to IE, thus causing many sites to break when viewed in standards-compliant browsers. Since people still use older browsers that are not CSS standards-compliant, cross-browser testing of websites is still necessary to this day.


Thanks to the competition between the browsers battling for the number of users though, modern browsers do support stable versions of CSS. The nature of the browser support issue is now in the varying ways that browsers support draft versions of the CSS specification.


You could point the finger at the W3C (World Wide Web Consortium) for their turtle-pace development process of the CSS specifications. Recall that CSS1 was released in December 1996. CSS2 was first drafted in November of 1997 and published with a “recommendation” status in May, 1998. Meanwhile, CSS2.1 was also drafted in November of 1997. To shed light on the slowness, CSS2.1 was in its fourth “candidate recommendation” status in September 2009, then was back to its fifth “last call working draft” status in December 2010, and then to its second “proposed recommendation” status in April 2011. (Note that its first “proposed recommendation” draft was back in March 1998.)














CSS2.1 has mostly been stable, so it enjoys support from all modern browsers. CSS3 meanwhile, is the newest. It is separated into modules instead of a massive single draft. The earliest drafts that were part of CSS3 were published in June 1999. Some modules are in more stable statuses than others. But due to the lack of the final “recommendation” status of CSS3, browsers are supporting the newest CSS specifications with browser-dependent CSS rules, more formally known as vendor-specific prefixes. Browsers that render webpages using the WebKit layout engine will process the CSS rules with the prefix “-webkit” while Gecko engines will process the rules with prefix “-moz” (since Gecko is created by Mozilla). Examples include “-webkit-transform” or “-webkit-transition,” based on the CSS3 draft.


People have mixed feelings about using vendor-specific prefixes. However, I think they will help speed up the development pace of the CSS specifications.



Moving Forward


Some argue that vendor-specific prefixes are proprietary code, and that the creators may change its usage on a whim. This is a rather generic fear though, as most vendors who release their version of the rule have referenced the working drafts of the CSS specifications, where the more stable-status modules can especially help in providing reasonable expectations of what the final draft will be like.


Another argument against vendor-specific prefixes is that it forces the developer to write really repetitive code, a separate rule for each vendor. Repetitive code is against good coding practices and potentially causes headaches for maintenance later on. Vendor-specific prefixes also do not pass CSS validation. While validation encourages good coding practices and is important, a user’s interaction with the webpage is arguably more important since the webpage is ultimately the final product and goal, not the elegance of the code itself.


The bright side of vendor-specific prefixes is that it can influence the speed of the W3C’s decision-making process when it comes to finalizing the CSS3 specifications. If there exist several vendor-specific-prefix rules that are the same in behavior and usage (besides the name of the rule where it varies in the prefix), the W3C can be more confident in finalizing that particular rule since so many people are already using it. It also exerts pressure on the W3C to quickly finalize it since the community at large already supports it.


Vendor-specific-prefix rules also prevent the usage of hacks developed to exploit the different implementations of the layout engine embedded in the different browsers and their versions. Hacks are often not obvious and sometimes make no sense whatsoever. For example, the following is a sample CSS hack:

padding: 10px;

width: 200px;

w\idth: 180px;

height: 200px;

heigh\t: 180px;

If the code appeared without comments, it may confuse the reader. It would be difficult to figure out which browser’s parser was being exploited to render a consistent box model. Contrast this to vendor-specific prefixes, which are explicit in which browser they affect in nature.


Hacks are also a very reactive approach, one that is taken after the developer realizes something “doesn’t work.” Vendor-specific prefixes on the other hand, are proactive. The widespread adoption of hacks will not help the W3C constructively in coming up with a solution. They only point out that there is a problem, as the W3C would not formalize a hack. Meanwhile, vendor-specific prefixes are proposed solutions in themselves. For example, the usage of the gradient rule is proposed differently by the different browsers/layout-engines.


WebKit browsers propose the gradient rule usage to be:


Whereas Mozilla proposes the rule usage to be:


The W3C now has examples to look at when considering the final specifications.



Conclusion


CSS has solved many issues that plagued web developers in the younger days of the internet. But as the web changes and grows, new problems are faced and web developers need more powerful tools. One of the biggest issues with CSS now is in the way that the CSS drafts are interpreted by the different browsers, as these drafts are not finalized specifications. Vendor-specific prefixes are just one aspect that can help CSS move forward from this issue. It is a good compromise between (1) enjoying newly proposed CSS features now and (2) waiting years and years until they become part of the final specification.



References


http://en.wikipedia.org/wiki/Cascading_Style_Sheets

http://www.alistapart.com/articles/prefix-or-posthack/

http://www.wise-women.org/tutorials/csstut/flow_kl_2.jpg

http://www.toothpastefordinner.com/072709/css-programmer.gif

http://www.blooberry.com/indexdot/history/css2.htm

http://www.w3.org/standards/history/CSS2

http://webdesignerwall.com/tutorials/cross-browser-css-gradient