Name: Anirudh

Email:

Bio: I have total of about 6 years of experience in developing Java/J2EE based applications. I try to keep myself updated with all the latest advents in the technology field.

Posts by anirudh.xebia

    10 Reasons why you should NOT write unit test cases!

    Finaly, here is a blog in support of all those who feel writing unit test cases is a sheer waste of time.. or is it?? Lets see..

    Below are few of the reasons:

    1.) You are Neo (from The Matrix) , the ‘chosen one’

    You can see the code getting executed as green binaries. You feel the code and understand every use case, you are just so rediculously genious that you don’t require any safety net of unit test cases to identify problems; you can see them with your naked eyes!

     

    2.) Your BA / Product Owner is 10th avatar of Lord Krishna

    So whatever he tells you is just Absolute truth! There is no confusion, discussion, ambiguity in the stories because those are the words of God! How can you not understand or even question the divine words? Why do you need stupid unit test cases to identify missing use cases, when nothing is missing!

    Read more »

    Using Map Reduce to find the twitter trends

    Few weeks back while preparing for our presentation for agileNCR 2013, Sanchit and I started working on an interesting problem statement to solve using MapReduce.

    We thought of applying MapReduce algorithm to find the trends in Twitter.

    A Tweet in a twitter can have hashTags (#helloTwitter) and a certain hashTag used most number of times in tweets globally is said to have highest trend. More details can be found here.

    This data is huge and also keeps on increasing, so processing it in traditional manner would not be possible.

    Hence we would require hadoop to help us solve this problem.

    Twiiter uses Cassandra to store the data in key-value format. Lets assume for simplicity that the key value pair for tweet data looks something like this < twitterHandle,Tweet >.

    Read more »

    Using verbs apart from HTTP verbs(PUT/POST..) in REST URL

    As per REST, the URLs should make use of HTTP verbs to expose their REST based services via HTTP. (i.e GET/PUT/POST/DELETE)

    So, a resource would be something like

    GET ../foods/1 would get you the food with id 1.
    PUT ../foods/2 would update the food with id 2.
    POST ../foods will add a new food.
    DELETE ../foods/1 will delete the food resource with id 1.</span>
    

    But in a real life complex application, we are faced with exposing many services such as approve, reject where it becomes inevitable to add verbs to the URL. What should we do? Should we just have the URLs like ../foods/1/approve ?

    What would go wrong if we use verbs in REST URL.
    Whether there is some rationale behind it or it just REST dogma..
    Apparently, there is :
    Read more »

    How did Liferay help me in building my app?

    In our current project we are building a portlet using Spring portlet MVC and liferay 5.2.3.

    More details about how we configured spring Portlet MVC with Liferay can be found here.

    Liferay has proved to be a boon for us in numerous ways. There were out of the box plugins, services and tag libraries which did hasten our development process. Whenever we got a new requirement we were able to identify some feature of the liferay to suffice our needs.

    So let’s see in detail, how actually liferay has helped us in solving those problems:

    Read more »

    Why would Agile fail for you?

    This is not yet-another-agile-gaga blog, but a story, some of you might find it interesting as well.

    Not A very long time ago and not in a galaxy far,far away, there were two teams.
    One team was following Scrum without Agile Mindset and second had an agile mindset.
    The ‘A’ team who were following Scrum, failed!! And ended up blaming agile, whereas the second team ‘B’, came out in flying colors and eventually moved to scrum.

    Let’s delve into the details to see what exactly happened…
    Read more »