JavaScript Tutorials
JavaScriptObject Oriented CSS
JavaScript is always object oriented for developers who wanted to build powerful Ajax based application. When the development of the application is focused on the size and required power of the function, everything else will just follow.
Although developers will immediately realize that there is going to be a lot of hard work, developers will also know immediately what it takes to build the application. This would mean better planning and ease of development in terms of organization. Although it is possible to build an application without focusing on being an object oriented application, planning the development of the application would be difficult.
The impact of the efficiency of Object Oriented JavaScript should also impact other functions that contribute to the development of an Ajax based application. CSS is one of the components in any application that looks simple enough to be understood. But integrating CSS to highly complicated applications is no easy task.
CSS could easily flow information from different sources but CSS is more than that – it needs to interact with the application. This is where the difficulty comes for CSS. This component in the application is never a walk in the park if you’re dealing with powerful online applications.
One of the perceived solutions for this problem in CSS is to implement what worked for JavaScript: create an object oriented CSS. This solution was presented by Nicole Sullivan. She is currently one of the most recognized names in programming especially on CSS. But aside from dealing with the advantages of Object Oriented CSS or OOCSS, she also developed the library that deals with the function.
The advantage of OOCSS has similarities to the Object Oriented JavaScript. Through OOCSS, developers will be able to fully adapt to larger files. Instead of chopping the files or getting more resources from the user, OOCSS will deal with the larger files head-on without any problem.
The strategy on the efficiency of OOCSS however, is not the same with Object Oriented JavaScript. OOCSS is dealing directly with large files and not necessarily on functions. Because of this challenge, the author opted to employ one of the smartest steps in dealing with this problem: divide and destroy.
Each division of the application will be separated by OOCSS. Normally CSS and JavaScript would go together in a single function which would be difficult if the CSS would have to deal with heavy data. So instead of dealing with JavaScript, OOCSS will separate JavaScript and CSS. This will be done by placing the function in HTML and JavaScript will have to be limited to DOM functions. By doing this, developers will be able to free up the functions of CSS for data only.
Another distinction that will be made by OOCSS is the separation of design and actual data. This is almost the same with CSS and JavaScript but has a more direct approach which should greatly benefit developers who are building complicated JavaScript applications. The separation that could be made through OOCSS will ensure the application works as expected and troubleshooting of coding will not be from the scratch as content and design is already separated.
Sponsored Links
