In my opinion callbacks are great. They make a huge
improvement of the
abstraction over the dumb and error prone HTTP-protocol: basically they
remove all the manual handling of request and response fields.
Callbacks make your system impossible to understand. Half a dozen
experienced Smalltalkers have been banging our heads against the callbacks
for three days.
We are trying to find out when to commit an action, and what arguments the
action used. Because the request is handled automatically, it is hard (it
may be impossible) to intercept the request. Because the callbacks in an
action are executed multiple times, it is hard to tell when something
important it happening.
You are falling into the fallacy that shorter code makes for a simpler
system. Callbacks might be easy for you to write, but they are hard for
everybody else to read, and in the long run are a bad idea.
I would MUCH prefer a completely manual handling of request and response
fields.
-Ralph Johnson