tag:blogger.com,1999:blog-36547168.post8218509925064438983..comments2023-11-25T11:00:42.257+01:00Comments on Invisible to the eye: Practical Php Patterns: ObserverGiorgiohttp://www.blogger.com/profile/03558287012747987157noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-36547168.post-26241140642322589892010-03-18T18:16:33.963+01:002010-03-18T18:16:33.963+01:00My mistake, the docblock remained there after I re...My mistake, the docblock remained there after I refactored the code. In fact, in the post I stated: The code sample implements a pull-version of the pattern.<br />Thanks for the signalation.Giorgiohttps://www.blogger.com/profile/12689416577856305650noreply@blogger.comtag:blogger.com,1999:blog-36547168.post-38527771312240722742010-03-18T16:59:40.804+01:002010-03-18T16:59:40.804+01:00Isn't the example pure /pull/, since you'r...Isn't the example pure /pull/, since you're passing the whole User object?Davidhttp://www.davidosomething.com/noreply@blogger.comtag:blogger.com,1999:blog-36547168.post-73323888359380790662010-03-10T23:21:57.449+01:002010-03-10T23:21:57.449+01:00This is interesting piece of code. I like your sty...This is interesting piece of code. I like your style!Chris Roanehttp://www.montanaprogrammer.com/noreply@blogger.comtag:blogger.com,1999:blog-36547168.post-86929547833004676512010-03-10T11:29:45.355+01:002010-03-10T11:29:45.355+01:00Thanks for the reply and the suggestion :)
I total...Thanks for the reply and the suggestion :)<br />I totally agree with you when you say that using a Decorator to add a <b>Subject</b> behaviour to the User would be a overkill. But, you know, I'm kinda perfectionist so I tend impose to myself a really strict set of rules and try my best to follow them (that's the major reason because all my projects never see the light).<br /><br />Keep going with these great articles, although I have the Design Patterns book from the Gof, I find them really helpful for improving my understanding.<br /><br /><i>I apologize for writing my previous comment in Italian, I'm not really keen in English.</i><br /><br />Ot: It would be nice to meet sometimes to discuss about Software Development in general in person.Andrea T.noreply@blogger.comtag:blogger.com,1999:blog-36547168.post-11561284531783247482010-03-09T18:01:36.531+01:002010-03-09T18:01:36.531+01:00It's very interesting article. Thank you for i...It's very interesting article. Thank you for information.jqueryhttp://tutsvalley.ru/js/jquerynoreply@blogger.comtag:blogger.com,1999:blog-36547168.post-61053429068368324052010-03-09T17:10:46.046+01:002010-03-09T17:10:46.046+01:00Era un esempio classico, ma scrivo tutto il codice...Era un esempio classico, ma scrivo tutto il codice per i post da zero per mantenerlo breve e sintetico.<br />Del resto se User deve notificare quando un suo membro *privato* cambia almeno un metodo per accettare gli Observer lo deve avere. Altrimenti potresti mettere il metodo su un servizio (ugly), oppure produrre un Decorator per User che si occupi delle notifiche (pero' in questo caso e' un overkill.)<br /><br />(however, this blog's official language is English :)Giorgiohttps://www.blogger.com/profile/12689416577856305650noreply@blogger.comtag:blogger.com,1999:blog-36547168.post-68910484652196733312010-03-09T15:36:58.742+01:002010-03-09T15:36:58.742+01:00Ho trovato l'esempio proposto molto interessan...Ho trovato l'esempio proposto molto interessante, ti è già capitato di usarlo in qualche applicazione o l'hai scritto ad-hoc per il post?<br /><br />Mi chiedevo se (pensando al Domain-Driven Design) aggiungere il metodo _attach_ all'interfaccia di User non _sovraccarichi_ in qualche modo le responsabilità dell'Entità.Andrea T.noreply@blogger.com