Skip to main content

Encasement Strategy

Reading these lines in Clive Thompson's Coders reminded me of my former colleague C and his phrase for the encasement strategy that is referred to here. C called it shellacking the turd.

.. “It was the hackiest shit imaginable,” jokes Alan Williams, one of Guarino’s teammates. But if you spend enough time around complex old systems, “you realize that the fastest, shortest way to a deep, solid, elegant integration is just by putting another layer of dirt on top.” In the world of coding, this sort of fix is what’s known as an “encasement strategy”—fixing a hairy, complex system by boxing it in. But sometimes it is the only option you have..

When the legacy code is just about impossible to unravel never mind understand or improve it, you encase it or do as C would say more colorfully. Have seen this strategy work well on many occasions. The real trick is to get the client over the giant hump of denial and to the plane of acceptance that this is only option they have. 

What is true for irredeemable code is also true for some relationships in a person's inner circle. They are too close to ignore or discard but there is no way to get on the same page with this folks, no way to make interaction with them tolerable, so you adopt an encasement strategy - something we all see in action on the holidays or whenever people get together after a hiatus. There is an unstated expectation that this time will be different, time would have sanded off those rough edges and somehow it would be easier. But such is not the case so whoever is wiser needs to start encasing and minimize contact with the core. 

Comments

Popular posts from this blog

Part Liberated Woman

An expat desi friend and I were discussing what it means to return to India when you have cobbled together a life in a foreign country no matter how flawed and imperfect. We have both spent over a decade outside India and have kids who were born abroad and have spent very little time back home. Returning "home" is something a lot of new immigrants like L and myself think about. We want very much for that to be an option because a full assimilation into our country of domicile is likely never going to happen. L has visited India more often than I have and has a much better pulse on what's going on there. For me the strongest drag force working against my desire to return home is my experience of life as a woman in India. I neither want to live that suffocatingly sheltered existence myself nor subject J to it. The freedom, independence and safety I have had in here in suburban America was not even something I knew I could expect to have in India. I never knew what it felt t

Cheese Making

I never fail to remind J that there is a time and place for everything. It is possibly the line she will remember me by when I am dead and gone given how frequently she hears it. Instead of having her breakfast she will break into a song and dance number from High School Musical well past eight on Monday morning. She will insist that I watch and applaud the performance instead of screaming at her to finish her milk and cereal. Her sense of occasion is seriously lacking but then so is mine. Consider for example, a person walks into the grocery store with the express purpose of buying detergent because they are fresh out of it and laundry is only half way done. However instead of heading straight for detergent, they wander over to the natural foods aisle and go berserk upon finding goat milk on sale for a dollar a gallon. They at once proceed to stock pile so they can turn it to huge quantities home-made feta cheese. That person would be me. It would not concern me in the least that I ha

Under Advisement

Recently a desi dude who is more acquaintance less friend called to check in on me. Those who have read this blog before might know that such calls tend to make me anxious. Depending on how far back we go, there are sets of FAQs that I brace myself to answer. The trick is to be sufficiently evasive without being downright offensive - a fine balancing act given the provocative nature of questions involved. I look at these calls as opportunities for building patience and tolerance both of which I seriously lack. Basically, they are very desirous of finding out how I am doing in my personal and professional life to be sure that they have me correctly categorized and filed for future reference. The major buckets appear to be loser, struggling, average, arrived, superstar and uncategorizable. My goal needless to say, is to be in the last bucket - the unknown, unquantifiable and therefore uninteresting entity. Their aim is to pull me into something more tangible. So anyways, the dude in ques