tag:blogger.com,1999:blog-36547168.post3102948938318523724..comments2023-11-25T11:00:42.257+01:00Comments on Invisible to the eye: Practical Php Patterns: BuilderGiorgiohttp://www.blogger.com/profile/03558287012747987157noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-36547168.post-68498578854803574792016-09-02T22:10:34.898+02:002016-09-02T22:10:34.898+02:00Hi Hermann, I think that Director here is just the...Hi Hermann, I think that Director here is just the client of the Builder implementation. Therefore it can do whatever it wants with the Builder, and of course if it can encapsulate and not expose it to other clients it's just good old information hiding.Giorgiohttps://www.blogger.com/profile/12689416577856305650noreply@blogger.comtag:blogger.com,1999:blog-36547168.post-59716224145225986142016-07-10T12:13:18.798+02:002016-07-10T12:13:18.798+02:00I have understood this pattern, but the example do...I have understood this pattern, but the example doesn't print the result ;) . Also I have a question. The code of directory should always encapsulate the build process, Right ? Because according do the intent of pattern the same construction process can create differents representations.Anonymoushttps://www.blogger.com/profile/12403533457849433138noreply@blogger.comtag:blogger.com,1999:blog-36547168.post-13389953695948686652012-05-24T08:48:33.798+02:002012-05-24T08:48:33.798+02:00Simple Pattern , Nice :DSimple Pattern , Nice :DAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-36547168.post-21861114897878738782010-01-12T14:50:45.320+01:002010-01-12T14:50:45.320+01:00So that, what I was doing with the trees was reall...So that, what I was doing with the trees was really a pattern =D, now I know where I can improve things!Jonathan Nieto (ice_j7)noreply@blogger.comtag:blogger.com,1999:blog-36547168.post-29515385277796830972010-01-10T10:48:37.808+01:002010-01-10T10:48:37.808+01:00Not yet, thanks for the tip. OOP in php is an expa...Not yet, thanks for the tip. OOP in php is an expanding field. :)Giorgiohttps://www.blogger.com/profile/12689416577856305650noreply@blogger.comtag:blogger.com,1999:blog-36547168.post-57742197029654619572010-01-09T20:39:57.926+01:002010-01-09T20:39:57.926+01:00I love the series so far! I'm following with ...I love the series so far! I'm following with my Head First Design Patterns book to try to really solidify the concepts in my head (the book isn't the best, but I found a cheap copy and GoF was a lot more).<br /><br />I'd love to see this series followed-up with a POEAA series in the same PHP fashion!<br /><br />BTW, have you read 'PHP In Action: Objects, Design, Agility' by Dagfinn Reiersol? It's a great book and is about the only other resource besides your blog that I'm found that is interested in serious and in-depth exploration of advanced OOP and OOD in PHP.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-36547168.post-24983617787915308982010-01-09T13:18:23.529+01:002010-01-09T13:18:23.529+01:00Onno,
often patterns are recognized and harvested ...Onno,<br />often patterns are recognized and harvested once an implementation has been completed. For example it's important to know what is an Abstract Factory because many times you will find yourself starting to craft a solution to the construction problem and realizing halfway that you are implementing a known, well-documented pattern.Giorgiohttps://www.blogger.com/profile/12689416577856305650noreply@blogger.comtag:blogger.com,1999:blog-36547168.post-6003008457653370792010-01-09T12:46:49.075+01:002010-01-09T12:46:49.075+01:00Good series so far, you can really explain it well...Good series so far, you can really explain it well. Now I do understand were abstract factories and builders can really be used for. Often the examples in books are so abstract you can't really see a use for a certain pattern. Your series are really helpful.<br /><br />What I am personally interested in is how to decide you need a certain pattern. For example why start implementing a factory method and not using the strategy pattern.<br /><br />Cheers, OnnoUnknownhttps://www.blogger.com/profile/16555661418154584127noreply@blogger.comtag:blogger.com,1999:blog-36547168.post-64161057615886334882010-01-08T15:25:24.194+01:002010-01-08T15:25:24.194+01:00Nice practical example :)
I am waiting personally...Nice practical example :)<br /><br />I am waiting personally for the Chain Of Responsibility pattern !Anonymousnoreply@blogger.com