Thursday, April 25, 2013

the good book

It's been a while since I posted for the last time.

I was watching the rails workshop like crazy and trying to extract every last bit of knowledge of it. Now I'm done, and it's time do start coding again, so I'll be posting more.

I still have to finish Kent Beck's TDD book, I've read only the first part, but today I felt the impact it had. Kent, I salute you!

I was coding something to a friend, and I was really able to think in a TDD-way, it was awesome, there's no going back now.

But the best part was refactoring the code. Kent says "Eliminate duplication", and I think I'll tattoo this on the back of my hands. Refactoring is AWESOME! Identify the duplication, eliminate it, "cool, my code looks cleaner!", run tests, all green, FUCK YEAH! It's almost like magic, you code shrinks before you eyes, becomes cleaner, and you have full confidence that you code still works.

If you wanna take a look at my code, see how it evolved, it's all here.

I wonder how much more cool stuff there is to learn in books like the classics Refactoring and Code Complete. I wish I had 48 hours in a day. =)

No comments:

Post a Comment