I should say, trying to understand what Google’s coders write is no fun. For the past two days, I’ve been working on a little project. If you go to Google Finance, and look at a company’s information, they have a really cool rollover feature in the management section. I’ve been trying to replicate this functionality for one of my projects. The problem is that Google has three CSS files, and three JavaScript files that make the page work. In the JavaScript files, there are no comments, no line breaks! and all the variables are single characters. Pretty much they’ve tried to make it very hard to understand what is there; impossible for a novice to come and take the code.
Out of the three JavaScript files, I narrowed it down to one file; only problem was that it was 21 pages long! So for the last two days, I’ve been cutting down the JavaScript file, trying to isolate the part the I need and dump the rest. In the end, I have eight CSS declarations that I put in my main CSS file, and a JavaScipt file with only five functions, barely a page. Much better than what it was before.
I was doing all the work for IAG’s new website, but I might end up using the coding on my own site in the portfolio section since it does look really nice. I’ll eventually get around to it when I finish this current project.
No Comments