Adapter design pattern
Adapter pattern adapts a piece of code to work with another. In real world, consider a battery charger for your phone. If you went for vacation to a somewhere in Europe, your charger won’t fit into the wall outlet. You would need a piece that can wrap your that fits into the socket in [...]
Singleton Pattern
In Singleton Pattern, the class can only create a single instance. We want a class to have only a single instance for various reasons.
Sometimes, we want use a global object to keep information about your program. This object should not have any copies. This information might be things like configuration of the program, or a [...]
Factory method design pattern
OpenOffice.org development heavily uses the Factory method design pattern.
Design patterns are conventional templates that describes how to solve common software problems. Since most developers are familiar with the patterns, they can recognize a pattern in others source code. That makes working in teams easier. There are many popular design patterns. One of them is Factory [...]
Reading ‘Head First Design Patterns’
It is sad that CPA in Seneca doesn’t offer any course about Software Design Patterns.
I just read through chapter two about ‘Subject Observers Pattern’.
Subject Observers pattern is useful when a bunch of observer objects need to be notified about change in the subject object. Observers registers themselves to get notifications from the Subject. When there [...]

