Skip to main content

Goodbye 2012


2012 has just gone by and all I can say is that, it has been yet another eventful year. The biggest thing that happened to me was my new job at Myntra. It has been two months since I joined my new employer and I'm liking my new work. I had started last year with a few goals (I don't like calling them as resolutions) and the very first one was to reduce weight. I had met with an accident in 2011 (a terrible one) and had to stay at home for two months. And by staying at home and munching all that good food, I had put on some extra weight and wanted to loose it desperately. I think I almost cleared that goal and now I'm proud of it.

Another great thing I did was to go on a long vacation with my wife. The vacation was for eleven days - four days in Kuala Lumpur and seven days in Bali. My wife and I had not been on a vacation since our last trip to Thailand and we decided to take a break from our routine work and enjoy some time together. Four days in Kuala Lumpur were good but not great, however when we arrived at Bali we knew there is something good in store for us. Bali is absolutely breathtaking; the beaches, temples, mountains, rice terraces and those sunset views were fantastic. However, there was one moment that stood out for me - watching Dolphins in their natural habitat. If you're planning to take a break I would strongly recommend this place. Most of them take a vacation when they are getting married or when they have to take a mandatory sabbatical or during the holiday season. I took my vacation in the middle of the year and I can tell you that it was the right choice I made.

Last year was supposed to be the 'last year' according to the Mayans. I know everyone must have had a laugh about it; on that day I was contemplating on the series of events that had been happening in my country. A girl was raped by six men in a moving bus and was hit with an iron rod and then thrown out of the bus. She suffered several injuries and about two weeks later she passed away. Alright the world did not come to an end but it ain't a world that anyone would want to live in. People may protest, light candles and give interviews on television but these events will happen again. I'm very much saddened by these happenings. Will 2013 be any different? I can only hope for it.

Comments

Popular posts from this blog

Adding beforeRender and afterRender functions to a Backbone View

I was working on a Backbone application that updated the DOM when a response was received from the server. In a Backbone View, the initialize method would perform some operations and then call the render method to update the view. This worked fine, however there was scenario where in I wanted to perform some tasks before and after rendering the view. This can be considered as firing an event before and after the function had completed its execution. I found a very simple way to do this with Underscore's wrap method.

De-obfuscating javascript code in Chrome Developer Tools

I had blogged about JavaScript debugging with Chrome Developer Tools  some time back, wherein I have explained how these developer tools can help in debugging javascript code. Today Google Chrome 12 was released and my Chrome browser was updated to this version. As with every release, there have been some improvements made on performance, usability etc,. One feature that stood out for me is the ability to De-obfuscate the javascript code. What is Minification? Minification is the process of removing unnecessary characters such as white spaces, comments, new lines from the source code. These otherwise would be added to make the code more readable. Minifying the source code helps in reducing the file size and thereby reducing the time taken to download the file. This is the reason why most of the popular javascript libraries such as jQuery are minified. A minified jQuery file is of 31 KB in size where as an uncompressed one is about 229 KB. Unfortunately, debugging minified javascript f

On GraphQL and building an application using React Apollo

When I visualize building an application, I would think of using React and Redux on the front-end which talks to a set of RESTful services built with Node and Hapi (or Express). However, over a period of time, I've realized that this approach does not scale well when you add new features to the front-end. For example, consider a page that displays user information along with courses that a user has enrolled in. At a later point, you decide to add a section that displays popular book titles that one can view and purchase. If every entity is considered as a microservice then to get data from three different microservices would require three http  requests to be sent by the front-end app. The performance of the app would degrade with the increase in the number of http requests. I read about GraphQL and knew that it is an ideal way of building an app and I need not look forward to anything else. The GraphQL layer can be viewed as a facade which sits on top of your RESTful services o