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

Boxers or Briefs?

I must be nuts to address this age-old question.

Anyway, did you know the source of the popularity of this seemingly risque question?

Not that I didn't ponder this question myself for years.

Hmm ... Boxers, or Briefs?

You see, growing up, I felt that boxers were too clumsy inside the trousers and ride up your thighs - so they were never an option for me. Yet briefs grip you in a chokehold, not letting you breathe.

So, I'll confess. I tried boxers a few years ago. And got hooked on to them- I liked that I can lounge around in them.

But of course, as any man can tell you, boxers have, ahem, disadvantages.

And did you know that you are risking getting a hernia if you're running up and down stairs wearing boxers inside? Now that should scare you into giving up boxers! If you don't know what hernia is, and you didn't check the above link, take a look at this slideshow. It certainly scared my boxers off!

I'm now switching to boxer-briefs. Little more freedom than br…

Citibank's junk mail opt-out is like jumping through hoops

I have a Citibank NRI (non-resident Indian) account which I don' t use much. But I get a ton of email from them - all marketing messages. I tried "unsubscribing" (still trying to figure out how can you unsubscribe when you didn't subscribe).

The reply I got back from Citibank shows their callous attitude towards their customers and particularly regarding the issue of spam:

From: India Service [mailto:indiaservice@citicorp.com]
Sent: Wednesday, September 26, 2007 8:39 AM
To: Murali Krishna Devarakonda
Subject: RE:'Citibank=006-038-728' Unsubscribe
Dear Mr. Devarakonda,

This is with reference to your email dated September 25, 2007.
To withdraw the promotion mailer facility, we require the Coupon A form. The form is available in the nearest NRI centre.
The list of NRI Centers are available in the 'Contact Us' under the "customer service" option in our website www.citinri.com.
We assure you of our best attention at all times.

Warm Regards,
Officer - Custo…

Keep Fear Alive! Or Restore Sanity!

As I became more and more familiar with the politics and rhetoric in the US - and its history, I'm beginning to realize that none of this is new. But that's part of the greatness of the system in the US. In spite of its flaws and ...the mean-spiritedness of various people and parties involved, this country keeps making progress overall, over a sufficiently long period - about 10 years.

The society and the political system has had the resilience and character to overcome any challenge it has faced. On the flip side, nostalgia can often be misleading- there is no such thing as the "good old days". Things were almost always worse in the past.

Here's one thing that absolutely symbolizes what I'm talking about:
http://www.RallyToRestoreSanity.com/
And of course, this:
http://www.KeepFearAlive.com/

Uniquely American responses to American problems!

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