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 ruled that the Fourteenth

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

A plan to blog more often

I am a prolific writer when I set my mind to it. From 1977 to 1984, I had exchanged an unbroken chain of written letters (about half a dozen per year) with a childhood friend. I had similar, smaller chains with some of my other school friends. I read a lot too. And don't me talking - I usually have a lot to say. But trust me, I listen well too (when I shut up). So, it's like all my life I was waiting for the blog' to get invented, but when that did happen, I seem to have run out of steam to take advantage of it. I've thought about why that is and the answer is simple. I'm a whole lot busier- especially since I'm bootstrapping my startup. But there are those who should be busier than me, successfully blogging all the time. How do they do it? I don't know for sure, but I'm going to start doing the following: 1. Write short blogs, with anything that I can think of. Even a single line quote. 2. Start writing the moment I think of something t