Tuesday, September 13, 2011

Object Relation Mapping



In a typical web application or any GUI based application, MVC pattern is widely followed. MVC says there is a clear separation between presentation layer, processing layer and the persistent layer. I always imagine any private or MNC bank where there are front office people, Nice, beautiful soft spoken who are the user interface. And in back office some ugly, tuff and smart mangers who run the business.  
Similarly we design our java application and I assume this holds good for mostly in Object oriented paradigm.  The presentation layer sends that data to processing layer and it process as per business.
All the time data resides in objects. In Java and mostly other object oriented language, Objects are very lively. They have attributes, behavior and sometime emotions. They are also  social as they  follow life cycle , share a relations etc.  To save these lively objects in to a dead hard disc or storage is called persistence.  We can’t store live object directly to storage or database. (May be some time in future  ... this area is still under R&D ). We have to break lively object to expression less  tuple ( a row in db table). Vice versa is also very much part of the game like converting the tuple to active Object.
So in application programmer has to take care of these breaking and making of object to store in to database. And this logic also tightly coupled with different  type of databases.  To improve the situation we got OR mapping. Object  Relation mapping where an object which need to be persist hold the information about the relation/table  in database where it is going to store.  And a framework which implement OR mapping responsible for serializing and de-serializing of objects.
Some popular examples of such OR implementing frameworks are Hibernate, iBatis etc.
It reduces lots of effort and complexity of the programmer to interact with database. And programmer can always concentrate on live objects and Business.

Friday, August 5, 2011

My wall is my hoarding

Now a days when ever my laptop boots automatically in a browser facebook opens. As if it is integrated with booting process. In fact to be in facebook or any social networking site we don't have to switch on computer. They are right there in our mobile and tablet in form of Apps connecting 24 X 7. And why use social networking I never thought, may be Human is a social animal thats why. But because of social networking , it opens a new dimension of communication. For example in face book I like "Michael Jakson" music. When there is offer or discount on Mj's album Amazon shows some advisement for me. If Ford plan to launch its new model Figo in India it will make sure that Figo has a page in Facebook. Well it looks the new and hottest trend to promote product,service or brand in social networking site. And its working also. The information or content can pass form one people wall to other and reach lots of user in no time. So all most every digital content available in internet is connecting to these social networking site. And its so simple for instance if you like this particular article you can like/share by just clicking button below. And the information will be on your wall and your friends wall. If they do the same it can reach to tremendous number of people. So I thought its really fantastic and ground breaking. 
I was trying relate this with our traditional way of advertising, Where people use to put information in big hoarding or they put posters in the wall of our houses. And If I need to post some information for example I want to give the house on rent it can be put into on wall of my house. So we used to use our wall for both inflow and outflow of information. And the same thing we are doing online through social networking. 
The inception of G+ with circle,hangout concept bring more excitement. Now I can define my neighbor who can see which part of my wall I want to. And I can hangout with groups of people. It means more social stuff to virtual world. So some way we are moving towards what we used to do in real world is through computer. Its good or bad I don't have much idea. 
If I put together as they came first one to one messaging/scarping (Orkut) then the concept of wall where many to many communication (FB) now we have G+ where we have neighbor and hangout ... If we think in this line what will be next ...  

Wednesday, June 22, 2011

Apple iCloud first impression



In recent Apple world wide developer conference Apple launched its new cloud service with other major release like lion and ios 5. Well apple is known for its visionary product and game changer in the industry. Specially with recent success of iPhone and iPad. So before iCloud release huge built up happened, Steve Job's medical leave also raised lots of eyebrows. Cloud was not new to the market. Amazon, Google and Microsoft have already entered into the market with their cloud products. I found two features which make iCloud different form competitors.
1) Most of the cloud services available are some form of infrastructure( ex : computing, storage etc) are hosted on clouds. As Steve Job told iCloud is much beyond than a Hard Disc on space. In this case applications are focus rather than the platform.Various application sync with each other over cloud automatically. User doesn't have to do anything extra. Applications will automatically take care of connecting to cloud and syncing the content. In Apple's word "it just work".
2) Sdk of iCloud is open for developers. It means not only those 6 or 7 apps from Apple will be on iCloud, it will be much beyond than that. It will certainly bring out lots of innovation and amazing apps from all over the world to one platform in a nice way. 
I am waiting to have an experience of these and services. 
Oh yes one more thing iCloud is free for everybody :)