State Pattern

When someone is walking, can they move to the state of walking? When someone is running, can they move to the state of running? the answer is NO since it is in that state.

Read More

Visitor Pattern

Por lo tanto, es probable que haya leído más de un billón de explicaciones diferentes del patrón de visitantes, y probablemente todavía esté diciendo “¡pero cuándo lo usaría!”

Read More

Builder Pattern

Sometimes it is necessary to construct objects through a process, since each class must focus on a single task, the construction must be a task of another class that builds objects, it can be said that it is necessary to construct objects with this pattern when the object is composed of several parts.

Read More

Singleton

The objects need one instance, because if we instantiate more than one this produces problems same incorrect program behavior, overuse of resources, or inconsistent results.

Read More

Facade Patterns

Muchas veces se tiene varias clases que uno al mirarlos no sabe cual es el orden de cada clase, en el ejemplo de abajo se muestra 3 clases: “CPU, Memory, HardDrive”, la pregunta es: cuando se realiza una accion, cual es el orden de ejecucion de ellas?, para solucionar y mantener un orden se crea una FACHADA que organice el orden y de esa manera simplifique las acciones del subsistema.

Read More

Factory-Method

hola mundo Some time ago when i study in university i was programer creating many instance of objects, for example: to BUSCAMINAS game i create explicitly the objects, new Flag(), new Mine(), new Table(), new Casilla(), etc.

Read More