Browsing All Posts published on »July, 2011«

Design Patterns: Using Maps to cancel out Switch statements

July 30, 2011

0

Cancelling out Switch statements [Removed from other post – requires editing] If you take the code example from “Design Patterns for Dummies”, “Design Patterns” or “C# Design Patterns” and many other resources you will find by default a Switch statement like this: // The default Switch Statement you find in a lot of code (examples) […]

Design Patterns: Getting things done (1) Managing processes with the Mediator and State Pattern

July 30, 2011

0

In this post and the next series of posts we will look at 6 patterns to get thing done. The Mediator and State Pattern This post will focus on the Mediator and State Pattern and provides you a brief overview of the similarities and differences in use and approach. To improve some of the shortcomings […]

Design patterns: an introduction

July 30, 2011

0

It has taken me a while to wrap my head around design patterns. I read four books recently, including “Design patterns” by the Gang of Four (referred to as “Design Patterns”, “Design Patterns for Dummies” by Steve Holzner, “C# Design Patterns” by Judith Bisshop and “ActionScript 3.0 Design Patterns” by William Sanders and Chandima Camarantunge. […]

Self-managing objects – To support Agile development processes

July 8, 2011

0

The main issue: avoiding entanglement of dependencies When you build software, at a certain point you will start building (managed) lists of objects. You might even have one or more managers taking care of this. For instance: Person – Is a Value Object (VO) containing a person. PeopleManager – Is a manager containing a List […]

Refactoring: When, what and where?

July 7, 2011

0

The basis of refactoring Refactoring or Core Refactoring is a process in which code and the organization of code and classes are restructured, to: Increase clarity – As a project grows, code can become more and more messy, as chosen paths changes and solutions that once were sufficient had to be expanded or changed as […]