TDD Anti-patterns: The Slowpoke
Continuing the series of posts about unit tests anti patterns.
A Stack Overflow thread inspired this series.
Continuing the series of posts about unit tests anti patterns.
A Stack Overflow thread inspired this series.
Getting started with document databases in Asp.Net Core.
How many arguments is too many for a function?
We can agree that a function with zero arguments is a good function, we don’t have to worry too much about it. The perfect world will be if all functions have zero arguments, but we know that’s not possible. Sometimes we’ll end up writing function containing six or more arguments, like this function:
Continuing the series of posts about unit tests anti patterns.
This series is inspired by a Stack Overflow thread.
How readability can make good unit tests.
The code that we write is more read than written. We write the code once, and it’s read many times more. Because of this, we need to write code that the reader could understand. We should care about the unit test’s code quality as much as we care for our production code. In this series’ last installment I’m going to talk about how we can write more readable unit tests.
Making cleaner switch statements.
The unit test’s arrange phase is where we write more code. Coding data creation can be cumbersome. The worst scenario happen when we have to fill all class’ properties, even though, we’re only using one property in the test. Besides being tedious, the data creation process can have a lot of code, resulting in less readable and maintainable tests.
Continuing the series of posts about unit tests anti patterns.
This series is inspired by a Stack Overflow thread.
Making cleaner switch statements.
You can check all the code in this git repository.
Create a simple alert system to enhance user experience.
In this post I’m gonna show you how to create an alert system using the tag helpers feature from the asp.net core mvc.
Always leave the camp cleaner than you found.
In the first chapter of the clean code, Uncle Bob talks about the boy scout rule, which can be summarized as: