SN

Michael Spangler - Software Developer

Hello! I teach software developers about test driven development, how to do it, and why it's awesome.

April 12, 2018

“Frameworks are tools, not ways of life”

Often ther is an all-encompassing, all-pervading, let-the-framework-do-everything position. This is not the position you want to take.

April 11, 2018

The benefits of stripping logic out of your controllers

Moving the logic from your controllers into service classes allows you to write more unit tests, which means you'll have a faster test suite.

April 9, 2018

Functional Core, Imperative Shell

An interesting idea on how to structure your code.

April 5, 2018

What is a unit test?

What is a unit test? Here's a quick, simple explanation.

March 21, 2018

Refactoring: Extract Method

If the main reason for writing tests is to give us the confidence to refactor, it'd be a good idea to know how to refactor.

March 19, 2018

TDD terms: What is a stub or test double?

If you're not sure what the terms "Stub" or "Test Double" refer to, this post explains what they are, and how you might use them in your tests.

March 15, 2018

TDD allows you to offload your thinking onto the computer

Before I used test driven development I would have to maintain a mental model of my software...

March 12, 2018

A little, magic button

Imagine you had a button you could push, a little magic button. You push this button, and some lights blink. And shortly there after a little ding, and a green light lights up. And that green light means that everything works, and you trust it.

February 22, 2018

Test driven development allows you to refactor, which means faster development

One of the major benefits of test driven development is that it allows you to fearlessly refactor code.