Writing Good Unit Tests: A Step By Step Tutorial

A tutorial to help you write comprehensive unit test suites.

Let’s imagine we just wrote a method calculating distance between two points on our planet. And let’s imagine we want to test it as well as possible. How do we come up with test cases? And what exactly do we need to test?

Bonus: learn a surprising fact about the Fiji islands. ūüáęūüáĮ

Continue reading “Writing Good Unit Tests: A Step By Step Tutorial”

The Hunch: 4 Times I Felt It And 1 When I Didn’t, And What Were The Consequences

I sometimes have this feeling: The Hunch‚ĄĘ. It’s when I sense there is something wrong with the project, with the requirement, or with the feature, even when everyone else is sure all is well.

When I sense this, I feel like a dog who picked up the scent. I follow the scent by asking questions, until I get my answer.

Here’s how it happens.

Continue reading “The Hunch: 4 Times I Felt It And 1 When I Didn’t, And What Were The Consequences”

Code Reviews Are Awesome, Here Are 7 Reasons Why

Code reviews¬†are a great practice to apply in software development. The approach is very simple: when you’re done with your code, give it to someone else to look at and leave comments.

Despite of its simplicity, it brings considerable advantages. Here are 7 reasons why this practice is useful.

Continue reading “Code Reviews Are Awesome, Here Are 7 Reasons Why”