Python patterns for fun and profit: The Adapter Pattern
Introduction The Adapter pattern is used to make one interface compatible with another. It allows objects with different,...
Using Python types for fun and profit: the Mediator pattern
Introduction The mediator pattern is a pattern used when you want to simplify communication i.e. message dispatching in...
Using Python types for fun and profit: the Builder
Introduction The builder pattern is a creational design pattern, i.e. it is a pattern for creating or instantiang...
Using Python types for fun and profit: the Singleton
Introduction The singleton pattern restricts the instantiation of a class to a single instance. The singleton pattern makes...
Using Python types for fun and profit: the Command Pattern
Introduction The command pattern is a behavioral design pattern. It is used by anĀ InvokerĀ to perform one action or...
Using Python types for fun and profit: the Proxy Pattern
Introduction The proxy-pattern is a very useful design pattern. The basic function is to make sure that a...
Using Python types for fun and profit: the Strategy Pattern
Introduction The strategy pattern is a behavorial design pattern that allows you to define a family of algorithms,...
Using Python types for fun and profit: the State Pattern
Introduction As many of you may know: Python is not a strongly typed language, unlike C# for example....
An easy way of implementing the Dependency Injection Pattern in Python
Introduction Dependency Injection is simply said, the idea that your classes should depend on abstraction, i.e. the abstraction...