Programming

Design Patterns : Flyweight pattern

Motivation There are cases in programming where it seems that you need to generate a very large number of small class instances to represent data. Sometimes …

Design Patterns : Singleton

Motivation It is important for some classes to have exactly one instance. As an example although there can be many printers in a system, there should be only …

Design Patterns : Chain of Responsibility

Motivation Object-oriented developers strive to keep object loosely coupled, keeping the responsibility between objects specific and minimal.. This leads to …

Design Patterns : Observer Pattern

Definition Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically. …

Design Patterns : Factory Method

Motivation As a class developer, you will ordinarily provide class constructors to let users of your class instantiate it. However, a client that needs an …

Design Patterns : Decorator pattern

Intent Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to sub-classing for extending functionality. …

Design Patterns : Strategy pattern

Motivation There are situations where the classes differ only by their behaviour, and on such situations it is advisable to isolate the algorithms into …

What is a Deadlock?

According to Coffman deadlock refers to a specific condition when two or when more processes are each waiting for each other to release a resource, or more …

Microsoft Web Matrix

Small, Simple, Seamless ! ‘Web Matrix’ is a free tool released by Microsoft for the rapid development to develop web applications in Microsoft Internet …

Making a Client Server application (Socket programming) in java

The programming languages become handier when the user can create a link between two pieces of compiled codes operating from two different locations. In this …