Submitted by Paul (not verified) on Wed, 2006-07-26 21:12.
I'm sorry I havent browsed around the site enough, will make a point of doing so (I see you're a fan of jonnay/bunny too).
I tell you why I ask the question about the audience. If I was making a patterns website for me (at my stage of learning, ie not scholared, a JS/html monkey turned php hacker, reading tooooo many threoretical pattern books) Then your thoughts hit the spot:
"....php has features not present in those languages.
It is a dynamically typed language, with a couple of unique features - like the ability to freely convert between strings and symbols (variable and function names). It would be foolish not to use those. In my opinion, we should code the pattern in the language, and more importantly, this helps the understanding of the language."
Its not only that though, PHP is borne of, and operates in, this stateless, hostile environment that is the internet.
Its refreshing to see someone saying 'Lets see how PHP can "play to its strengths" rather than keep knocking how its not as good a Java/etc'.
Like I said previously, theres lots of real PHP pattern sites springing up, extolling reams of code, and that is fine.
But back to my point again...
I would really like to also see discussions/lists containing examples of when a particular pattern was used.
E.g Observer:
this is its shape, here it is as functions only... Used it in a Transaction Script for logging... etc
Especially if you can elicit this kind of feedback from your visitors: "Even if this helps a little, it's worth it, because it wil bounce back to me."
I'm sorry I havent browsed around the site enough, will make a point of doing so (I see you're a fan of jonnay/bunny too).
I tell you why I ask the question about the audience. If I was making a patterns website for me (at my stage of learning, ie not scholared, a JS/html monkey turned php hacker, reading tooooo many threoretical pattern books) Then your thoughts hit the spot:
"....php has features not present in those languages.
It is a dynamically typed language, with a couple of unique features - like the ability to freely convert between strings and symbols (variable and function names). It would be foolish not to use those. In my opinion, we should code the pattern in the language, and more importantly, this helps the understanding of the language."
Its not only that though, PHP is borne of, and operates in, this stateless, hostile environment that is the internet.
Its refreshing to see someone saying 'Lets see how PHP can "play to its strengths" rather than keep knocking how its not as good a Java/etc'.
Like I said previously, theres lots of real PHP pattern sites springing up, extolling reams of code, and that is fine.
But back to my point again...
I would really like to also see discussions/lists containing examples of when a particular pattern was used.
E.g Observer:
this is its shape, here it is as functions only...
Used it in a Transaction Script for logging... etc
Especially if you can elicit this kind of feedback from your visitors: "Even if this helps a little, it's worth it, because it wil bounce back to me."
I hope so.