How I won both of my Mother-in-Laws *with Shu-Ha-Ri*



Please don’t start running your saas-bahu saga minds here. As the well known agilist, Ken Schwaber said once –

“Scrum is like your mother-in-law, It’s constantly pointing out your shortcomings.”

I have 2 mother-in-laws, one my own and the other one is the Agile process we run.

May be unbelievable but true. Me and my mother-in-laws goes pretty well, almost like friends. The secret behind this friendship is the way I approached the entire relationship with ShuHaRi, the Japanese martial concept which describes the stages of learning to mastery..

Shu– Obey the Rules

Ha–   Analyze the Rules

Ri–    Make new Rules

This way they know, that I am not a rebel, but I am not even a blind follower. I am an intelligent thinker, which establishes a harmony between both of us to accept the changes that bring positive impact.
ShuHaRi is s a Japanese martial art concept, and describes the stages of learning to mastery. Though its related to fight, however that also means its related to survival. Which in turn also mean that its related to LIFE.

The person who says in the start, “My house my rules” will always have a bitter relationship with the mother-in-law. As you have never tried to understand why she had certain rules and the logic behind them. In the end everything fails as your logic is without experience and now you have even lost the support of the experienced person by pissing her off.

Same applies to Agile project management too. I see many organizations trying to devise their own version of Scrum/Lean/Safe. However most of them are doing it

  • without following the process and identifying the gaps
  • and assuming that the current process will not work without even trying.

The process ultimately will fail because,

  • You don’t know what challenges the original process solved.
  • You became a Trishanku (in limbo), who has not totally adapted agile nor moved away from faulty and unnecessary practices of traditional process.
  • In new process you spend a lot of time in solving the older problems which were solved by original process as for you these problems are new
  • You lost the experienced learning from original process creators.

So an advice for any organization/individual trying to adopt agile:

First identify a fitting framework, follow it to the dot for sometime (3-4 months), then inspect and adapt based on your learnings.

Though in case of original Mother-in-law the following period is a bit longer, kinda 4-5 years, however if you can believe me, its the key to successful married life 😉

Happy Living!!!


Agile User Stories Training Session

Since past few years I have started to wear another cap of ‘Trainer’. I had given several training on Ruby, Rails, Scrum and Agile on the corporate level.

Recently, I gave a training for Writing good user stories in Clarion. If you are interested, take a look at the presentation I used.

Docker goodness

Have you ever faced these challenges?

  • It works on my machine but not on yours…
  • I have been helping the new person setup her environment all day…
  • I can’t try it because IT hasn’t  updated dev-environment…
  • I have to work directly on production environment to fix this issue…

I feel these are everyday problems that we face. Is there a solution? Yes.
Docker is an emerging technology which is quickly gaining the momentum. It is the answer to many of such questions other than making the server management and deployment a muc easy task.

If in case you do not have much idea on what Docker can do, take a look at the brief presentation I have prepared to give a high level idea on Docker.

Session updates During concurrent requests


, , ,

So this has always been a problem with Rails SessionStore. The problem is that if your app is sending concurrent requests and one of them is updating a session then depending on which request wins in the race you might get the stale session variables instead on the updated one. The problem is better explained at other places like and the solution is a plugin smart_session_store by Frederick Cheung.

It might not seem a very informative post to you, but I am still posting it as this has taken me quite a bit of time to find out. And after finding it, I am astonished to see why Rails still can not deal with this issue.


Note: I am talking about Rails 2.3.8 here. Not sure if Rails 3 has a fix for it or not.


Websockets ?

Just today have seen some buzz around websockets of HTML 5. After exploring a little, I thought this is sharable so here it is in a small description.

So websockets is a two way communications channel that operates over a single socket and is exposed via a JavaScript interface. So unlike Ajax, which needs 2 bi-directional streams on up-stream and one down-stream it serves over just one stream. And this is the latest additions to web 2.0 apps via HTML 5 implementations. The server can then “push” information through the WebSocket, directly to the browser, without the browser having to go out and request it.

So you ll wonder as HTML 5 is just supported by few browsers and very few versions, then how feasible is it to use. Well… for that There are several Websocket servers available that provides JavaScript library that can support almost any browser of any version.

For example : Kaazing supports all major browsers (Firefox version 1.5 and higher, Internet Explorer version 5.5 and higher, Safari version 3.0 and higher, Opera version 9.5 and higher, and Google Chrome version 0.2 and higher).

Where as Pusherapp (widely used by ruby community) doesnt provide support for all browser but provide a flash based fallback solutions for remaining browsers.

Later might come more as I explore more. Or you guys explore before me and update me also 😉 But that sure worth a shot.

Learning Java now :O

hmmm so my resume says, I know java but that was the java we did in a small course during the academics. Hence you can say that I dont know much java apart from the OO part of it which I knew from Ruby. At this stage when I am already spoilt by Ruby, it will be very hard for me to just go through Java’s classes and compilers. I am looking forward to understand and write java webservices which will feed rails apps with SOAP.

Lets see how it goes. Any suggestions if any of you guys  have?? Apart from the general Ruby community comment “You gone mad kya??? ;)”

We All Like to Reblog (via News)

I really like this new feature from wordpress. And this post is just to try it. Thats the reason even after hundreds of available blogging tools I feel wordpress is the best 😉

We All Like to Reblog Have you ever come across a blog post that you enjoyed so much you wanted to easily share it with the readers of your own blog? Sure, you can copy and paste the link and perhaps even a snippet of text with your own comments, but overall it's not a particularly enjoyable experience. We wanted to change this and make sharing other posts with your readers as easy as posting to your blog. Today we're introducing a new like and reblog feature enabled … Read More

via News

Move towards optimization now…


, , , , , , ,

If you are looking to do the query optimization of your rails apps, I can suggest using few tools that does it.

1. First I want to suggest BULLET– A rails plugin/gem to kill N+1 queries and unused eager loading.

Bullet helps in finding the space for eager loading. It has a beautiful way of telling where should you add the eager loading for certain association. Whenever you try to run the code in development browser, it pops up a js alert and tells you exaclty where and what includes you have to add in you finder queries. It also tells you to remove the extra unnecessary eager loading handled in you app.

To add more beauty to it flyerhzm added growl notification as well for the Mac based developers.

2. Second suggested tool will be Slim-Scrooge: SlimScrooge heavily optimises your database interactions

Slim-Scrooge works for optimizing the sql queries by monitoring the required columns for the model and changing inline the queries to fetch only selective columns. So with slim_scrooge working in background you don’t have to worry about giving the options to :select in you find. Instead slim_scrooge will itself analyze what are the columns needed to run your code for the first time and second call to the same action it itself puts the necessary column in select removing the asterisk(*).

I am still skeptical about using it. As it might make the developers lazy(just blindly putting * in queries) and increasing the processing time in slim_scrooge inline query modifier. Though I think it could be a good tool if used once in a while to analyze what are the missing selects in our code. Whatever be the case you might wanna give it a try, its kinda lucraitve.

3. Last but not the least I try to add is rack-bug: Debugging toolbar for Rack applications implemented as middleware.

Remember rails-footnotes? Well Rack-bug is kinda same but seems better and provide more. Better, because its rack based. Provides more with the toolbar giving following info:

  • Rails Info
  • Resource Usage
  • Rack Env
  • SQL
  • AR Objects
  • Memcached
  • Templates
  • Log
  • Memory Usage

I kind of loved it at first sight. So if you already have footnotes. Give it a try. If you dont, then again give it a try to optimize better. Watch the screencast by brynary for more info.

If you have tried any of those feel free to give your opinions. I will be happy to learn how everybody is approaching the technique of optimization.