Welcome!

Puneet Sangal

Subscribe to Puneet Sangal: eMailAlertsEmail Alerts
Get Puneet Sangal via: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Top Stories by Puneet Sangal

While creational patterns decouple a client from the objects it instantiates, behavioral patterns dictate the object interaction. If not carefully planned, coupling and cohesion can pose major design issues. My previous article, "Java GoF Creational Design Patterns" (JDJ, Vol. 9, issue 9), discussed creational patterns. This article will focus on behavioral patterns. Knowledge of the behavioral pattern vocabulary will help designers come up with appropriate solutions for object interactions, minimizing or eliminating these issues. One basic thing to understand is that there are two kinds of patterns: Class: Describes compile-time relationship between classes via inheritance Object: Describes the runtime relationship between classes via composition The patterns elicited in this article have been classified as either object or class based. Generally, object patterns a... (more)

Java GoF Creational Design Patterns

A design pattern is a solution to a recurring problem. Although using patterns this way is well known and has been around for a while, it was only when the GoF wrote their famous book, Design Patterns, on software design patterns, that patterns slowly but surely became an industry standard. A design pattern is not just object-oriented design, but the communication between these objects. The GoF Creational patterns are a specific subset of these patterns that create objects for you, rather than creating them directly. Why would you want that? It provides cleaner development and eas... (more)