testing, testing

I realize that you can read the Bible and find that Jesus would pretty much be amazing at any job. For example, The Master Plan of Evangelism explains how Jesus is a mastermind by entrusting the entire future of the faith into 12 incompetent disciples and then giving them Holy Spirit to carry it out. Every great CEO, teacher, doctor, parent, firefighter, policemen, judge, lawyer and engineer are but shadows of Christ.

And they were astonished beyond measure, saying, "He has done all things well. He even makes the deaf hear and the mute speak." (Mark 7:37)
I also happen to believe that Jesus would make the best programmer alive, because he knows about TDD.

TDD stands for "Test-Driven Development", and it's a method of programming (and it's pretty dang effective). There's 5 steps to this process:

1) Add a test.
2) Run all tests, make sure the new one fails.
3) Write some code.
4) Run tests.
5) Refactor code.

Then you repeat.

TDD really works because you never fix something until you're sure it's broken. And until you add a test in, you don't realize that something isn't working.

We hate it when the tests come in our lives, and when we fail those new tests. We realize we weren't a finished product, and it hurts to realize that we aren't perfect. But the beautiful thing is that it leaves God room to write some new code, polish and spruce up what wasn't working before.

TDD only works because you make sure the code will fail the new test. It really helps to know that we were meant to fail the tests:

"For by works of the law no human being will be justified in his sight, since through the law comes knowledge of sin." (Romans 3:20)
Because that's the only way that we can be changed, and that's where God can rewire us from trusting in our own flesh to looking to the Cross where He refactored everything. We no longer get what we deserve, because Jesus got what He didn't deserve. We get what we didn't deserve, because Jesus got what He didn't deserve.

0 comments: