Design Patterns in PHP

Comments

Comments are closed.

Great presentation, one of the most concise intro to design patterns in 60 minutes I've ever heard.

Absolutely the best explanation of MVC I've heard. I started getting a little fuzzy on some of the later stuff -- maybe because my OO is weak -- but I think some of the examples could be strengthened also.

The Iterator example comes to mind -- it basically replicates existing PHP functionality. That may end up making the example less helpful because it leaves some in the audience wondering, "why would I ever need an Iterator"? An example showing something you can't already do with next() might be more helpful. Or then again it might just be more confusing...

Love the fun examples, though. Using "son", "daughter", and "wife" makes code much easier to grok than using "foo", "bar", and "baz", at least for me.

Cal, don't you know you can't convey that many design patterns in an hour ;) Actually, that's what I'd have thought..and you shouldn't be able to, but Cal really managed to get through some difficult concepts on an important topic.

PHP 5's turn to OOP is a pivotal moment in the life of PHP. Key to not losing procedural PHP programmers as we complete this shift (which is far from done, ask @CaseySoftware for the figures), is explaining to them design patterns. Nice way to close out the conference.