Design Patterns

TwitterFacebook
Get flash to fully experience Pearltrees
http://sourcemaking.com/antipatterns-book

AntiPatterns: The Survival Guide

Whereas patterns are good ideas that can be re-applied to new situations, AntiPatterns: The Survival Guide To Software Development Processes looks at what goes wrong in software development, time and time again. Most software projects fail This enlightening and often entertaining text defines what seasoned developers have long suspected: despite advances in software engineering, most software projects still fail to meet expectations and about a third are cancelled altogether. Our deadliest hit list begins with the Blob, where one object does most of the work in a project, and proceeds to Continuous Obsolescence, where technology changes so quickly that developers can’t keep up.
In software engineering , a design pattern is a general reusable solution to a commonly occurring problem within a given context in software design . A design pattern is not a finished design that can be transformed directly into code . It is a description or template for how to solve a problem that can be used in many different situations. So patterns are formalized best practices that you must implement yourself in your application. [ 1 ] Object-oriented design patterns typically show relationships and interactions between classes or objects , without specifying the final application classes or objects that are involved. Many patterns imply object-orientation or more generally mutable state, and so may not be as applicable in functional programming languages, in which data is immutable or treated as such.

Design pattern (computer science) - Wikipedia, the free encyclopedia

http://en.wikipedia.org/wiki/Software_design_pattern
Factory Method ... define "createInstance" placeholder in the base class, each derived class calls the "new" operator and returns an instance of itself Bridge ... the wrapper models "abstraction" and the wrappee models many possible "implementations" ... the wrapper can use inheritance to support abstraction specialization Prototype ... encapsulate use of the "new" operator behind the method signature "clone" ... clients will delegate to a Prototype object when new instances are required

Huston Design Patterns

http://www.vincehuston.org/dp/

Design Patterns and Refactoring

http://sourcemaking.com/ SourceMaking — is the best information source on the Web on such software development topics as design patterns, refactoring and UML. A lot of information freely available through the site's pages, so feel free to use bookmarklet to leave interesting chapters for further reading. You may start browsing the site by following one of these topics:
In software engineering, a design pattern is a general repeatable solution to a commonly occurring problem in software design. A design pattern isn't a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations. http://sourcemaking.com/design_patterns

Design Patterns

Machine Objects - Hierarchical state machines in C++

http://ehiti.de/machine_objects/ 1 Introduction The Machine Objects class library allows the creation of state machines based on the "State" design pattern in plain C++. It extends the pattern with the option to create hierarchical state machines, making it possible to convert the popular UML statechart notation to working code in a straightforward way. Other features are entry and exit actions, state histories and state variables. In my experience as software developer I have found the State design pattern to be very useful.
Why use a singleton class? This design pattern and methodology ensures that only one instance of the C++ class is instantiated. It assures that only one object is created and no more. It is often used for a logging class so only one object has access to log files, or when there is a single resource, where there should only be a single object in charge of accessing the single resource. The singleton pattern discussed here gives the class itself, the responsibility of enforcement of the guarantee that only one instance of the class will be allowed to be generated. http://www.yolinux.com/TUTORIALS/C++Singleton.html

Linux Tutorial - C++ Singleton design pattern

You should probably read up Alexandrescu's book. Regarding the local static, I haven't use Visual Studio for a while, but when compiling with Visual Studio 2003, there was one local static allocated per DLL... talk about a nightmare of debugging, I'll remember that one for a while :/ If you ever try to use the object, you need to be alive and kicking. http://stackoverflow.com/questions/2496918/singleton-pattern-in-c

Singleton pattern in C++ - Stack Overflow