Skip to main content

Your Conscience (Part-2) and Test-Driven-Development

... contd. from Part -1: Your Conscience is Your Compiler

Friend: Ok, got it. I used to think these are instincts.

Me: Well, you can hack it, i.e. ignore your conscience, but then you're corrupting your "code" and it affects your "program" behavior. And soon, you can't fix it anymore.

It's gone, unless you do major "refactoring".
Or a complete rewrite- which for humans is death and rebirth... and what does anyone know about death and beyond anyway?

In this life, you can only do refactoring, there's no rewrite.

Friend: Nice analogy. TDD!

Me: Well, TDD- Test-driven development is to ensure you are always following your conscience...But at the same time, allowing yourself the oppportunity to learn and the privilege to change your mind some day as you mature. TDD lets you easily incorporate lessons you learn as you grow and mature. It helps you change more easily than would be otherwise possible for you. It helps you easily figure out what went wrong- and how to fix it! And in fact, it would be so obvious and simple that even someone who doesn't know you much can help pinpoint it to you. I can go to a stranger and discuss some of these issues... and they'll say a thing or two that'll tell me immediately what I was thinking or doing wrong. It helps me change myself with objective criteria.

Friend: yeah

Me: TDD, my friend, is the best thing that happened to software since software was created...

Test-driven-development is turning the software "animal" into a software "human"!

TDD is the conscience of Software!


[Originally posted on my personal blog at muralikd.blogspot.com, September 27, 2010]

Comments

Popular posts from this blog

1876 Redestruction: Supreme Court puts the final nail in the coffin of Reconstruction

  From the winner of 2019 Pulitzer Prize:  Frederick Douglass, Prophet of Freedom  by David W. Blight As the election neared in 1876, all knew the last vestiges of Reconstruction policies and regimes were at stake in the remaining "unredeemed" Southern states. In 1876 the project of Reconstruction, and perhaps the United States itself, were like a huge battleship slowly turning around as it lost power; once turning, it could hardly be stopped, even if the same group of officers remained at the helm.  That year the Supreme Court weakened the Reconstruction-era constitutional amendments by emasculating the enforcement clause of the Fourteenth Amendment and revealing deficiencies in the Fifteenth Amendment.  In US v. Cruikshank, based on prosecutions for the horrible Colfax massacre of  1873, the Court overruled the conviction of Louisiana whites who had attacked a political meeting of blacks and conspired to deprive them of their rights.  The justices ru...

Bugs in the American Legal System

As an immigrant from India, I have always been very impressed with the American legal system. In over 17 years, I have not encountered grassroots corruption, have been treated courteously by those in power, and have seen the system work overall in favor of the individual. In particular, I've always seen the punitive damages system as a counter-balancing force that puts the "fear of God" in the minds of the rich & powerful corporations that would otherwise tend to trample the average citizen. I'm not so sure any more after I heard this program on NPR's Fresh Air today:  Reporter Explores America's Unique Take on Justice It discusses the news series in New York Times, by Adam Liptak, called  American Exceptions . The highlights of the series so far are: Inmate Count in U.S. Dwarfs Other Nations’ The U.S. has less than 5 percent of the world’s population but almost a quarter of its prisoners. Foreign Courts Wary of U.S. Punitive Damages For ...

BP and US Government Regulators were Accomplices

The following are excerpts from  a news story that details a laundry list of facts  that show BP and US Government Regulators acting as accomplices in a series of safety violations that combined to reach a tipping point, leading to the worst oil spill in history and a thoroughly incompetent response to it: [Originally posted on my personal blog at muralikd.blogspot.com, June 06, 2010]