Topics

programming

php drupal scheme scheming macros design patterns da la

design

design css

random thoughts

scribbles

alter ego

other me 'em that link us my space me linked in

Collections

Programmable web
PHP design patterns

your wise words
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 hope so.

Reply

Please solve the math problem above and type in the result. e.g. for 1+1, type 2
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <br /> <br> <div> <a> <em> <strong> <cite> <pre> <code> <ul> <ol> <li> <dl> <dt> <dd> <h3> <img> <blockquote> <q> <strike> <small> <h4> <h5> <h6>
  • Link to content with [[some text]], where "some text" is the title of existing content or the title of a new piece of content to create. You can also link text to a different title by using [[link to this title|show this text]]. Link to outside URLs with [[http://www.example.com|some text]], or even [[http://www.example.com]].
  • Lines and paragraphs break automatically.
More information about formatting options
Home ยป PHP Design Patterns

dikini.net

spreading confusion by accident since 1970