thanks for the responses. i've used array_map before and that makes sense but I'll have to sift through some of the other ones. things due; brain tired.
-j
| SitePoint Sponsor |
thanks for the responses. i've used array_map before and that makes sense but I'll have to sift through some of the other ones. things due; brain tired.
-j
Well, uh, yeah....so what's your point?Originally Posted by kyberfabrikken
![]()
No, but seriously you are correct. When you develop for Drupal it takes about a year to get the code and even then you have to spend a lot of time in the API docs or just grepping the source code inorder to develop new modules or modify stuff. But this is the "Drupal Way" as they so eloquently put it. The use of PHP calbacks is their mainstay and defense against using OOP.
FHQK ed UP - It's a really FHQK ed UP world we live in!
Hiveminds Magazine
Search Engine for Drupal
Search Engine for Students
Wordpress's plugin system works in a similar fashion, albeit in a somewhat less OOP way. Each plugin in the plugin directory gets included, and each has code to register its callback functions into the notification system.Originally Posted by Selkirk
You know, whenever I start thinking about All The Stuff I Wish PHP Had, I end up transforming it into Ruby.Originally Posted by Selkirk
Yes, this is something I wish Drupal had rather than having every module load all of it functions everytime. Wordpress is nice like that.Originally Posted by 33degrees
FHQK ed UP - It's a really FHQK ed UP world we live in!
Hiveminds Magazine
Search Engine for Drupal
Search Engine for Students




I suffer from the exact same symptom. So what we're going to need is mod_ruby on 90% of webhosts, and we can live in peace once again.Originally Posted by 33degrees

Originally Posted by stereofrog
Came across this today. Sometimes I wish you could do more at runtime. Perhaps a function data type in PHP 6?
![]()
Last edited by michel; Jan 22, 2006 at 14:09.





I hope you don't take it seriously. php is perhaps the least suitable language for functional programming.

I didn't take it seriously at all, i just happened to find some more PHP experiments. Amusing, that's all. I'm not sure if I was kidding about the function data type though. I don't have a clue if it's feasible for PHP to have this implemented. You would probably need namespaces then as well...Originally Posted by stereofrog
Bookmarks