Implementing Service Oriented Architecture using Http is a horrible idea

Posted on Sun 16 November 2014 in Programming • Tagged with programming, infrastructure

Service Oriented Architecture is a commonly used design pattern in distributed and enterprise applications. It involves the creation and use of independent services that work together to produce the desired result. The most important benefits, of course, are separation of concerns and the ability to scale each service independent of …

Continue reading

The toughest interview question

Posted on Tue 29 July 2014 in Programming • Tagged with programming, interviews

What is the output of the following C code snippet?

int n = 1;
printf("%d %d %d\n", n++, ++n, n++ + ++n);

This is a tricky question. Any attempt to answer this question requires either a deep understanding of your compiler’s parser or a complete ignorance of C. Even …

Continue reading

In search of the perfect blogging platform

Posted on Wed 23 July 2014 in Random • Tagged with musings, misc

What makes a good blogging platform?

Leaving the tech details, feature lists and other bells and whistles aside, a good blogging platform’s primary aim is twofold:

  1. Make blogging enjoyable. Entice the blogger into writing more articles.
  2. Make reading enjoyable. The output of the blogging platform should be easy to …

Continue reading

Abstract Classes and Factory Design Pattern in Python

Posted on Thu 19 December 2013 in Programming • Tagged with python, programming

Abstract Classes are one of the most useful and important concepts in Object Oriented Programming. I’ll attempt to illustrate their usefulness, and their usage in Python 2.7 with the following (seemingly contrived) example:

Let us say, you want/have to implement posting updates on Facebook using Python. Your …

Continue reading

New Year Resolutions and Nostalgia

Posted on Tue 01 January 2013 in Random • Tagged with new year resolutions, nostalgia

I was going through this link today when I could not help but feel an overwhelming sense of sadness and incompleteness.

I will be graduating in May, 2013 from the Indian Institute of Technology, Varanasi. The best 4 years of my life already behind me. As I was going through …

Continue reading