During my visit to a library in my neighbourhood, I usually see two contrasting groups. One is a group of retired men mostly in their 60’s and 70’s and other is a group of college students. The contrast is not in the age but the life in the togetherness of these people. The retired men’s group is lively, people are chatting and arguing, cracking jokes at each other. The student’s group on the other hand was too silent with sporadic comments like ‘Hey check what I have just shared’. The student’s group was hanging out in the virtual world in texts and memes.

We always seek joy, we will always find ways to remain happy but we give more weightage to frivolous joy than momentous ones. Short term goals or immediate gratification gives joy because of the reward cycle of our brain; we are trained to get satisfaction by being busy and believe we can get great output just by rote activity, just a vestige of industrial revolution practices.

I read this story somewhere sometime ago — A poet who has not produced much in the recent times took a boat and rowed to the middle of a lake. He thought the distance from the people and quiet atmosphere will lead him to good train of thoughts. It was nightfall so he lit a candle, pulled out his notebook to write but no thoughts occurred to him. He was flipping between his old poems for inspiration and also closed his eyes tyring too hard to concentrate. Hours went by and nothing happened, he thought reading some book will help him and started to read, but it got windy and he had a hard time to keep the candle from getting out. After several minutes of struggle to keep the candle burning, he gave up in frustration and the wind blew the candle out.

moon-165487_640Until the candle was burning bright, he was missing a beautiful sight of the full moon which gracefully illuminated the entire lake, the valley and the surrounding hills. That whole evening he had been waiting for an inspiration to write and it was just lying in front of him. The wind by blowing out the candle, did the trick; the sight in front of him was so spectacular that it inspired the poet to produce one of his greatest works.

 ‘I am not producing anything creative, so why ask me not to browse and consume information always? I enjoy this more than our conversations’ — This is a common retort when you remind people to be present in a situation and not fiddling with their gadgets. It is gadget to be very specific as books are not very destructively distracting, books cannot cater to a short attention span and can not provide on demand entertainment.

A study was done on rats for addictive behaviour, a lever was provided in a cage which provided a dose of cocaine when pulled. On discovering this, the rats kept pulling the lever for more and more doses of cocaine until it killed them. Our neural pathways for reward is not very different from that of rats, we would soon get hooked on to joyful behaviour even though it will cause us harm in the long run. The only way to get away from this is to consciously avoid the ‘pull to refresh’ hooks in the gadgets and set some quality time for leisure. Fortunately delayed gratification is an acquired skill, there are enough studies like ‘The standford marshmallow’ experiment suggest that people disciplined enough are way more successful.

Leisure is one of the best rewards, it is very hard earned and should be spent wisely. There was once a time when people predicted that the world will be with so many machines that people can accomplish their work within few hours of work everyday and pursue their hobbies; fast forward to the digital revolution, the work and leisure no longer has boundaries, in fact there are no boundaries and distances at all.

If socializing & leisure is forgotten due to blurred boundaries then the only reward we have is to keep ourselves busy. We reach out to our pockets to consume information to gratify the need to have a sense of usefulness. That leads us nowhere, it is just being busy for the sake of busyness, some sense of self worth.

It is okay to say that we have free time, of all the years I spent when I look back; the only thing in memories are those mindless chats, sports, games, hobbies etc. None of the memories like going through social feeds for hours together is so memorable, those seem like a blip when looking back compared to the memorable ones however small in duration they were, seems very vivid. By being deliberately busy we are just passing time, not living.

HelpToyota introduced the andon cord in their manufacturing lines to help people to stop the production line and alert the people around if an abnormal situation arises. It is a cord that hangs above the head within easy reach of any to help to immediately gather the attention of the others. While the rest of the industry was treating production line is something that never should be stopped and let quality control take care, this one put power in the hands of people on the line to take a call to improve quality by attacking the problem at its source.

The idea then widely got adopted in different forms like ‘Help’ buttons in various manufacturing sectors. It was easy to adopt in manufacturing as we can see what is going wrong and gather together to immediately fix the problem. In software development it is not obvious when to pull the andon cord and how to collect thoughts of people on what to solve.

huddle

Dev huddles are the answer to the andon cord in software development. Huddles are very common in any team sports, team members quickly huddle to celebrate a goal or discuss a plan. The team also optimises over time to communicate very effectively in fewer words and quick time.

When to call for a dev huddle?
We need to call for a dev huddle when

  • Our programming has deteriorated from a flow to brute force or trial/error method. Manuals did not help to resolve and even a quick help from another team member did not help.
  • We find a badly developed code and need to bring it to attention of the team when it is still fresh in mind.
  • We are about to make a major change in the code base and every body needs to be aware of the incoming change so they are not surprised.

How to make sure that we don’t waste other’s time?

Team time interruption is expensive, so before calling for a dev huddle we need to make sure that we have all our show and tell pieces ready for discussion. One example is when stuck at a problem, quickly jot down the problem and the steps tried to resolve that did not work on the whiteboard in diagrams or words; then call for the huddle. If the resolution or direction is not found within 10~15 minutes, break the huddle to come and do a detailed research on the problem.

Why should dev huddles work?

Dev huddles work on the idea of crowd wisdom, the average output of a group is always higher than best individual in the group in most cases. Ideas & solutions can come from any one provided they are given a good explanation about the problem. Dev huddles also help in knowledge sharing in a terse & effective manner.

I got a chance to walk on the Golden Gate bridge, could not stop admiring the beauty of the surrondings and the bridge. One can see what the bridge is subjected when taking a walk on this one, I arrived at one edge of the bridge when it was bright & sunny and by the time I reached the other end it was misty & foggy. It is constantly pounded by waves & high speed wind; and takes a lot of traffic. It left me curios to find the engineering behind it, after a while I stumbled on a documentary made by Nat Geo titled ‘Impossible bridges – Golden Gate’.

The engineers thought that it is impossible to build such a bridge because the water was too deep and winds were too fast and the distance is too long to cover. Even if built people wondered about how could it be sustained. Nat Geo’s documentary showed how the crew worked over the years to strengthen the bridge, rework the floor without disrupting much traffic flow. There were innovations like suspended traveling platforms to work on the cables. The bridge withstood an earthquake and was  strengthened to withstand stronger earthquakes. At the end of the documentary, the narrator mentions, he is sure that all parts of the bridge has been replaced at least twice but due to the engineers’ skill, people never knew that they are looking at a new bridge.

Golden Gate

The same holds good for long running software projects, many softwares over the course of time change so much internally based on the people working on it, which Richard Gabriel calls as Habitability in his book ‘Patterns of software architecture’. If the engineers who took over the maintenance of Golden Gate have not replaced the bridge over the course of time we would have a big heap of metal lying on the sea bed due to structural erosion. It is the same analogy that applies to software called ‘big ball of mud’ due to software rot.

The biggest reason given for software rot is that there is not enough time. Architecture is a long term concern, little beyond the learning horizon as mentioned by Peter Senge in his book ‘Fifth Discipline‘. We are not able to observe the effects of software architecture in the near term as there are very urgent business needs that keep coming up and they are never tangible like bridges; visualising them requires experience and skill. The advantage a software has is that it can be made more robust even after it has been built hastily.

How do we find that the architecture & design needs a revamp?

  • If the change to the software looks simple and trivial but takes a bafflingly disproportional amount of time to fix.
  • If it is difficult to visualise the code and explain to others in simple abstractions.
  • If a technology upgrade looks infeasible without a rewrite.
  • If there is too much dependency on individuals and context.

The revamp is not just about modular design & clean code but also adequate test coverage along with a robust continuous delivery mechanism similar to how the Golden Gate’s engineers used suspended traveling platforms to carry out their repair work on the cables without affecting traffic. A successful well maintained app that takes advantage of new technologies and changes hands would definitely been written many times over and no one would have noticed it.