Member-only story
Improve Your Testing #17: Write a Blog
Why writing a post makes you better at writing for machines.
Every developer knows that writing clean code, especially in tests, is very important, but few consider that perhaps the next step to improve their skills could be as simple as starting a blog. They seem like two different worlds, one is the world of machines and the other is for humans, however, both are governed by very similar principles, and can benefit from each other. So, let’s discuss how starting to write a blog can help write better tests.
More similar than it seems.
Perhaps it doesn’t seem so, but both types of writing are not so different, and they require a similar set of skills.
To begin with, in previous entries, I introduced AAA, the Arrange-Act-Assert. A three-part algorithm to first prepare the situation we want to test, perform the action, and finally verify what’s there. Does this structure remind you of anything in writing? Well, yes, right? In writing, we’re told that we should start by introducing concepts, then develop ideas, move the story forward and present conflicts, and finally, we reach the conclusion, where everything comes to an end. And we call this Introduction-Body-Conclusion, a complete parallel.