Author Archives: cogani

Game of Life Kata

  Links Game explanation:’s_Game_of_Life Github solution sources:

Implementation patterns – Behavior

John Von Neumann contributed one of the primary metaphors of computing a sequence of instructions that are executed one by one. This metaphor permeates most programming languages, Java included. The topic of this chapter is how to express the behavior of a program. The patterns are: Control Flow—Express computations as a sequence of steps. Main Flow—Clearly… Read More »

Birthday Greetings Kata: Implementing by hexagonal architecture

Developed by Manuel Rivero & Nico Cortés This is a simple refactoring exercise by Matteo Vaccari that is meant to teach something about dependency inversion and dependency injection. The documentation: We refactored the initial code to decouple domain objects from file system and email sending using ports and adapters as the exercise suggested. We think there’s… Read More »

The ‘Self’-Shunt Unit Testing Pattern

 Let’s say that you are a test case. One of the things that you can do is pass yourself to the objects you are testing so that you can get more information.  (Michael Feathers) Links Example sources: Article: The ‘Self’-Shunt Unit Testing Pattern, by Michael Feathers