PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sat Aug 08, 2020 6:39 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 121 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 9  Next
Author Message
 Post subject:
PostPosted: Sat Jun 30, 2007 12:28 pm 
Offline
DevNet Evangelist

Joined: Tue Dec 21, 2004 6:00 pm
Posts: 6267
Location: Winnipeg


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 30, 2007 12:32 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13592
Location: New York, NY, US

_________________
(#10850)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 30, 2007 12:51 pm 
Offline
DevNet Evangelist

Joined: Tue Dec 21, 2004 6:00 pm
Posts: 6267
Location: Winnipeg


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 30, 2007 12:58 pm 
Offline
DevNet Master
User avatar

Joined: Thu Aug 15, 2002 5:53 am
Posts: 4235
Location: Sussex, UK


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 30, 2007 1:10 pm 
Offline
DevNet Master
User avatar

Joined: Mon Sep 19, 2005 6:24 am
Posts: 3587
Location: London


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 30, 2007 1:14 pm 
Offline
DevNet Master
User avatar

Joined: Mon Sep 19, 2005 6:24 am
Posts: 3587
Location: London


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 30, 2007 1:17 pm 
Offline
DevNet Evangelist

Joined: Tue Dec 21, 2004 6:00 pm
Posts: 6267
Location: Winnipeg


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 30, 2007 1:23 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13592
Location: New York, NY, US

_________________
(#10850)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 30, 2007 1:32 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13592
Location: New York, NY, US
I think we covered Smalltalk...

So is there interest in a design discussion of what I called Post-ZF/RoR frameworks and the comparison of dispatched vs callback style frameworks? Perhaps hacking some demonstration code?

_________________
(#10850)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 30, 2007 1:51 pm 
Offline
DevNet Evangelist

Joined: Tue Dec 21, 2004 6:00 pm
Posts: 6267
Location: Winnipeg


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 30, 2007 2:21 pm 
Offline
Forum Newbie

Joined: Tue Dec 19, 2006 4:23 pm
Posts: 20


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 30, 2007 2:46 pm 
Offline
DevNet Evangelist

Joined: Tue Dec 21, 2004 6:00 pm
Posts: 6267
Location: Winnipeg


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 30, 2007 3:36 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13592
Location: New York, NY, US

_________________
(#10850)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 30, 2007 4:52 pm 
Offline
DevNet Master
User avatar

Joined: Mon Sep 19, 2005 6:24 am
Posts: 3587
Location: London
callbacks are simply a state of execution on hold until it is called upon.

In Seaside, this allows me to generate a form, and for each input I can assign a callback. Example textinput callback would simply be to assign the value of the input to a variable, for later use - usually in the callback I assign to the form (ergo, the submit action.) where I then use the input's for processing.

An anchor callback can be anything, but usually to display a different component (ergo a different page.)

Programatically generated output has huge advantages. I can generate a view with nothing but a simple <h1> block from one component, but I can also create a view that has dozens of components (which are seperate objects) and still be safe in the knowledge that the final output will still be valid. I could also render any of those mixed-and-matched components individually, and still create valid markup.

I can mix and match any component with the generator and it will render valid markup 100% of the time. No matter which order I render them in. This is not the case in templates. I have to ensure I 'include' sub-templates in their correct places and so forth.

If I do try to render malformed markup, the generator will not let me. Templating will allow me to make as many mistakes as I like.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 30, 2007 5:54 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13592
Location: New York, NY, US

_________________
(#10850)


Last edited by Christopher on Sat Jun 30, 2007 10:34 pm, edited 1 time in total.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 121 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 9  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group