background preloader

Design-patterns

Facebook Twitter

Engenharia_de_software

Joanna Carter. Introduction When we use Delphi to design forms and data modules, every time we place a component on the designer, several things change: the form now shows an appropriate representation of the component, the object inspector changes to show the properties of the component and, if we press Alt-F12, we see the .DFM file now contains information about the component.

Joanna Carter

Whether this behaviour was modelled correctly on the Observer pattern or not, the result is that several ‘interested parties’ got to know about a change in the content of the project that we are working on. If you read the GoF Design Patterns book, you will find much discussion on the semantics and structure of the Observer pattern. Do we want to have one subject and many observers; do we want to have many subjects and one observer; or do we want many observers to keep track of many subjects? eTecnologia.com.br principal. Ricardo Luiz Schneider' Home Page.

Strategy Pattern » Tiago Luchini. Depois de uma semana sofrendo com um algoritmo para fazer load-balance e alocacão de portas para um servidor de live-streaming, finalmente consegui sair com uma solucão 100% funcional e que deixou todos felizes.

Strategy Pattern » Tiago Luchini

Foram mais de 12 classes, 2 bibliotecas externas, um protocolo de criptografia decomposto, uma pseudo-linguagem de macrosubstituicão enganada e um banco de dados mais um container de aplicacão sem pessimist locking - mesmo que isso fizesse parte dos requisitos funcionais. Licão aprendida (ou seria reafirmada)? Sempre utilize strategy pattern mais algum mecanismo de factory (qualquer um que abstraia a classe implementadora completament) .