Sunday, July 13, 2008

How to become browser independent?

How to become browser independent?

(This blog entry intended for the young web developers)
If you are a web developer and often write JavaScript code then you must be aware of the fact that JavaScript behaves differently on different browsers.
Actually each of the browsers has their own set of JavaScript implementation. That’s makes the JavaScript programmer’s life damn difficult while writing the JavaScript code.

The most common way a JavaScript developers fight against the browser dependency is by doing a Null check on each variable before executing on it.
For example
var XMLHttpFactories = [
function () {return new XMLHttpRequest()},
function () {return new ActiveXObject("Msxml2.XMLHTTP")},
function () {return new ActiveXObject("Msxml3.XMLHTTP")},
function () {return new ActiveXObject("Microsoft.XMLHTTP")}
];
function createXMLHTTPObject() {
var xmlhttp = false;
for (var i=0;i< XMLHttpFactories.length; i++) {
try {
xmlhttp = XMLHttpFactories[i]();
}
catch (e) {
continue;
}
break;
}
return xmlhttp;
}


Here you can see, author is brute forcing to get a simple XMLHttpRequest instance. Because in different browsers XMLHttpRequest object can be retrieved in different ways.

I found a much simpler way to become browser independence in terms of JavaScript as well as in terms of CSS.
Write your JavaScript on top of the any existing JavaScript framework which is coded for browser independence. A question is which JavaScript library is coded for browser independence? Answer is YUI.
Yes, YUI (Yahoo User Interface library) is freely available library, coded and maintained by Yahoo.
This library is a result of yahoo’s 20 years (more than that I guess) of experience with web technologies. One of the best part of this library is it is hosted on yahoo website. Additionally you can download and can serve from your website too.

Friday, April 11, 2008

Introduction:Google App Engine

Google App Engine is a massively-scalable all-in-one application, database, and storage hosting solution by Google.
It means using this solution you can start your own active website. The next big feature of this service is that everything will run on Google infrastructure, and it’s totally scalable. Scalability means, performance (capability to handle request) of your website can be varied without any hassles.

How it’s different from Geo-cities/Google pages kinds of hosting?

  • Geo-cities kind of hosting allows you to put only html content, which is kind of dead pages, where you can just put information and nothing else.
  • When you go for this kind of service, you will write some code to display the pages; this code will be executed on the Google server. Since your code gets executed on Google server, Google has huge security risk, you might do something which can delete/expose some of the data from Google server.
  • To run your application, Google is using application Virtualization, which facilitates Sand-Box so that Google server can minimize the security risk, and simultaneously can give you scalability.

Currently you have to code your web application in python(its a programming language), which should be WSGI compatible.

Your can store your data in Big-Table, which has to be manipulated with GQL( a new query language similar to SQL).

Watch out for next blog for writing your first hello world application

Tuesday, April 8, 2008

Google App Engine

I am very happy to Blog that Google has started its cloud computing. Today Google has launched its “App Engine”. This was something I was waiting for last 2 years. I just registered my self for this service. We will see what the features it has?

For the time being Google has released software SDK for this, which simulates exactly the same kind of environment as actual engine (which will run on Google machines).

Best part of this new service is that it is free to get started, test the functionality and then you can go for the hosting. Now I am telling you than people will come up with whole big out-of-the-box applications for this new service.

This engine is of-course cloud computing enabled, you can scale your infrastructure as per your need, and which is the biggest benefit of cloud computing.

Google left Amazon far behind in this service, lets see how Microsoft is coming up with.

Wednesday, March 19, 2008

Companies Revenue




I thought of blogging this data.
I have collected the revenue and employee-strength data for various software companies.
Please see the image.

Wednesday, December 19, 2007