Is this post completed yet?

Nope, the post is not completed yet. (But please keep reading)

Testing the post

Testing as a lifestyle!

The test-driven development is a methodology of software development (but it could be used in other kinds of subjects too), where the first thing you do is create the test that defines what your code needs to do.

You know those tests are going to fail, but with them, you know for sure what you need to do.

-Is this post completed?

-No :c, try again.

Testing the post

I already talked a bit about this in a past post (it is in Spanish, sorry English speakers), in there I spoke of a methodology I listen about in class called: Test && Commit || Revert

I still think that that thing is crazy, but I’m eager to try it at least once, maybe in my next project.

This methodology works based on TDD, but with a little twist, for every bit of code you write, it should pass your test, if it fails, you revert everything until your last commit. This creates two things (besides driving you nuts), to force you to develop small specific tests and to create small specific commits.

A (not so) funny story

The funny thing about all this is that the current project I’m working on, I tried to start testing, then I realized that I didn’t have time for this, so I started ignoring the testing, and at the end when trying to build one of the tests was deprecated (I changed an interface), so I decided to delete it (you can check this disaster in the commit history).

So no what?

So yes, testing is difficult in the sense that you need to be used to it and have the patience and dedication to continue working on them even on a deadline, something I was incapable of. Still, I’m dedicated to improving all this.

-Is the post completed?

Testing the post

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s