Binary Me

January 15, 2010

Chrome Browser – Amazingly Fast!

Chrome the Lightweight Browser
This is not the first time I came across Chrome, in fact I must be the first among my friends to use it early last year.

It was a nice acquaintance, the interface was clean, fast yes it was fast, I was excited to throw away my Firefox but one thing in Chrome was missing the equivalent of Firebug, a debugging add on  which will make web application development more exciting every programmer should use.

Thus, I ended still using my reliable Firefox browser.

A Merry Christmas
Just an aside we were working on a project prototype last year for a big web database application, well we got lucky, after series of presentation and proof of concept application we finally got the approval, that makes our Christmas a little merrier.

Mission Critical Project
We are excited about this project but we have also mixed emotions.  To give you a background this is something we haven’t done before, I mean we had big projects similar to this, but this one we are using new technology in the bleeding edge including Java, PHP, Apache, Postgre, Dojo (practically no limitation here) on one occasion we have to wait for the “nightly source update” of Dojo to check if it would fixed a bug we suspected.

Anyway, during our initial development one of the primary issue we take into consideration is stability, security and speed.

Performance Issues
Web application performance is affected by the server, client PC, memory, internet bandwidth and program execution speed.

Anyway during our program testing we encountered “loading” delay of the program, specifically loading of Java Scripts. This would not be acceptable.

Seventy percent (70%) 0f load time was involved in loading the Java Scripts. We browse the web of the possible solutions. Some talk about memory, hardware, internet bandwidth, compression, Java Script builds etc. Then I came across a new http protocol they call it SPDY (read speedy) as a replacement or enhancement to TCP/IP? The problem is it still in the early stage and still not implemented in current browsers, except (as mentioned in one forum) Chrome and Safari.

Chrome Revisited
Thus I immediately downloaded the latest version of Chrome and tried our web application on it. Wow! The result is amazingly fast.

Using Chrome initial application load time is approx 3 to 5 secs compared to Firefox 3.6 which would take almost 30secs. Reloading a page is a snap 1 to 2 secs compared to Firefox at 10-15 seconds. I tried Safari but  I gave up it was too slow I don’t really know the reason was, perhaps it was not aware or optimized for Java Scripts.

A new development tool is also available similar to Firebug.

The Verdict
I am very happy of the test results, as I would not (for now) delved on JavaScript optimization issues. Thanks to the people behind Chrome.

Anyway, by virtue of the power I have over my Compaq I hereby set my default browser to Chrome.





November 19, 2009

Zend Framework Our Mind Saver

It has been several months since me and a good friend poured our brains in seriously studying Zend Framework (framework.zend.com) and we are very excited about it now.

This happened after we have develop some applications using pure (luck) PHP and sprinkles of JavaScript. Our previous projects was always a challenge, as the project grows our codes become unwieldy. Although the project was relatively successful and our clients are happy about it, adding new features or modules into the system is not a request we would gladly embrace. The incremental amount our clients are willing to pay is not too enticing considering that digging back the source codes and making modifications might create unwanted side-effects which will lend to problems or instability. We would rather leave the code untouched and keep the client contended of what they have now. I am not saying that PHP (codes) is not clean. The reality is sometimes programmers (including me) gets tired and lazy and given strict deadlines will write lousy codes without regard to quality or coding standards just to finish the task at hand. We usually promise to go back and rewrite the codes a few weeks alter but programmers time flies quickly and our memories is not in gigabytes. Or sometimes we are bombarded with new and more interesting projects. Or … okay we got lazy again or we simply forget.

All these changed when we came across Zend Framework. ZF is simply a PHP development Framework. It follows the MVC (Model, View and Controller)  programming paradigm. In this style of development the application is seen as comprised of three isolated representation of the application; 1. Model – this represents the data objects and how it is structured, 2. View – this is how the information will be displayed or rendered 3. Controller – this controls the logic of the applications this is where the business rules are usually implemented. This is also where the how the data (model) will be manipulated before it will be passed to the viewer. At first the concept seems strange but as you understand the logic behind this implementation you will begin to see the beauty and love it.

It is composed of several will written PHP classes and interfaces (API) to different web services available in the Internet today, including your favorites like YouTube, Facebook, Google Maps and many more. As a development framework, it encourages coding and design standard by imposing upon the programmer to follow a well defined application structure. With the availability of related development environment like Zend Studio, our tasks not become more enjoyable. This is specially true when developing a project as a team. One programmer can now easily check others work and make it feel like strolling in the mall as opposed adventure is the jungle.

So what now? What would this mean to our clients? Well, they still have to pay large sums of money for the web business applications they dream of:). Seriously they can expect enterprise grade, internet connected and web aware applications. One example would be map enabled applications which will give you directions of your nearest warehouse, or a dynamic map showing your territorials sales.

The possibilities are endless, but since my time now is limited I will talked about this later.

Powered by WordPress