- What can you find on these pages?
- A pattern catalogue with php pseudo-codish examples. For working implementations you can always check what the kitty thinks of that. I might have problems with implementation, but those are my problems, it does not mean those pages are not worth as a reference.
- Why?
- A reminder and a tantrum space
- Why have you moved the catalogue to this page?
- Because I wanted to separate this catalogue from longer descriptions I plan to put, and all of them should live under design patterns
- Warnings and notices
warning I realised, late enough not to correct it, that I'm using a particular case of wishful thinking - using any php callable in
$callable(...)expressions. The reality is abit uglier. We need to use either
How I wish php could do that out of the box, especially when it actually does it, just not in the short syntax. Anyone happy to hold my hand to do a php patch for that feature? I'm very unfamiliar with the internals, sorry.call_user_func($callable,...); call_user_func_array($callable,...)notice As Jared notes in his comment calling functions/methods with $ in a lot of cases you can use
unfortunately this discriminates against functions, which are lighter to use than their method brethren$obj->$meth(...)instead ofcall_user_func($callable,...);. Indeed you can use the following code as part of the remedylist($object,$method) = some_call() $object->$method(...)and a mention The above two used to live on the top pattern page until I moved them here