Patterns

  • submit to reddit

Factory patterns: Collaborators Map

Dependency Injection Containers are often proposed as a quick way of writing creation and wiring code: instantation of classes, the connection of object...

0 replies - 5720 views - 10/22/12 by Giorgio Sironi in Articles

How to Take Unit Testing (and Test-Driving) Seriously

So we write some test code, then make it pass, and restart. If we have still some minutes in the current Pomodoro, let's refactor a bit and extract some...

0 replies - 11325 views - 08/21/12 by Giorgio Sironi in Articles

The Page Object pattern

In the realm of acceptance testing, a possibility for hooking into the application and exercising it end-to-end is to work through a user interface, which...

0 replies - 7844 views - 04/09/12 by Giorgio Sironi in Articles

The Decorator pattern, or its cousin, in JavaScript

The Decorator pattern is a way to reduce multiple levels of inheritance that clash with each other; for example, if you want to create objects which address...

0 replies - 3517 views - 02/09/12 by Giorgio Sironi in Articles

Unit testing when Value Objects get in the way

Tests developed during TDD can be classified into several levels, depending on the size of the object graph they need to work with. End-to-end tests span the...

0 replies - 6245 views - 01/26/12 by Giorgio Sironi in Articles

Patterns Antipattern

In late nineties I started my career in software development. This was roughly few days since I started my second gig. In a Bank. After initial hoopla I...

4 replies - 4515 views - 07/12/10 by Artur Karazniewicz in News

Death by buzzwords

We'll start in media res, with a pair of quotes:The design viewpoint expresses the logical components and their structural relationships. It also expresses...

1 replies - 6664 views - 06/08/10 by Giorgio Sironi in Articles