Tag Anti-patterns

Non-determinism in tests

This is the final post in my series about unit testing anti-patterns. This one is about non-determinism in tests.

Overriding methods in classes-dependencies

I’m continuing my unit testing anti-patterns article series. Today, we will talk about overriding methods in classes-dependencies.

Code pollution

This is another post from my unit testing anti-patterns article series. Today, we will talk about code pollution.

New course: Refactoring from Anemic Domain Model Towards a Rich One

My new training course Refactoring from Anemic Domain Model Towards a Rich One went live.

Exposing private state to enable unit testing

Last time, we talked about making private methods public in order to enable unit testing. It’s not the only way people expose implementation details to the outside world for unit testing purposes, though. Today, we’ll look at a similar anti-pattern: exposing private state.

Unit testing private methods

I’m starting a new series about unit testing anti-patterns. This post is the first article in that series.

When it comes to unit testing, one of the most commonly asked questions is: how to test a private method?

Unit testing anti-patterns: Structural Inspection

This post is about the practice of Structural Inspection in unit testing and why I personally consider it an anti-pattern.

Mechanical approach to domain modeling

In this post, I’d like to talk about a mechanical approach to domain modeling. It sometimes arises when teams start applying Domain-Driven Design (DDD) principles to their projects and when they don’t have enough experience with it yet.

Partially initialized entities anti-pattern

The topic described in this article is a part of my Domain-Driven Design in Practice Pluralsight course. In this post, I’d like to talk about the partially initialized entities anti-pattern: anti-pattern that is often used in conjunction with repositories. Partially initialized entities Partially initialized entities are entities which are not fully constructed and returned as a result of some operation, usually an operation of fetching them from the database.