terminal-auspicious

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

guild
short - why not
Submitted by vlado on Wed, 2006-07-26 14:49.

Long, things get more complicated. If you browse around the site - you'll see that I've been logging some of the tests/experiments I've been doing. Then I stumbled upon a bunch of example pattern code which is not wrong, but obviously too verbose. The reason, I suppose is that people try to understand, me including, what that pattern means, how to code it, look at examples, then do it. More often than not, they translate form Java/C++/C# - which whoul be fine, in the end it works for those languages, but ,and this is the big point for me, 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. Speaking it better so to say.

Patterns are not self-contained standalone entities. To be honest, I wrote and uploaded this collection, simply because I got pissed off. Then I said to myself, yeah, you can throw tantrums, but can you do better? What is better? How do you see these things implemented? What do you use for your own code? Then a few of the "standard" ones, and a couple of the items on the list - for completeness - they are too short or copies of other patterns to be useful, but I wanted to show that similarity.

Audience? Well, myself and my vanity for starts, a few of my friends with whom we exchange ideas, people like you. I simply don't believe that I should keep knowledge in a cupboard. Even if this helps a little, it's worth it, because it wil bounce back to me.

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