Mike: My favorite are singleton ( database connection configuration ), and factory. Factory i use when need one code exporting or doing different process. Basically y have a base class with general code and a specific class that extend the base class with code specific to the process to be made. The main code only pass the type of format ant factory returns de right code for the operation. The main code remains untouched, when the factory chance each time a i need other type of process or exportation results. Alejandro M.S. -----Mensagem original----- De: Mike Mackintosh [mailto:mike.mackintosh@xxxxxxxxxxxxxxx] Enviada em: terça-feira, 7 de fevereiro de 2012 16:57 Para: PHP General List Assunto: What's Your Favorite Design Pattern? I was curious to see what everyones favorite design patterns were, if you use any, and why/when have you used it? Choices include slots and signals (observer), singleton, mvc, hmvc, factory, commander etc.. Thanks, -- Mike Mackintosh PHP, the drug of choice - www.highonphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php