I might be missing some of the context and previous discussion, but thought I'd 
chime in anyway...

I think this is a *terrible* idea. Great for crud apps, but as a very heavy 
user of webwork 1 (and 2, increasingly) purely as a *user*, commands (the ! 
stuff) are very very useful.

They're also very easy to explain to other developers, you can use one action 
for many different things. Everyone loves this feature.

What's nasty about this proposal is the implication that commands are only used 
for CRUD stuff, which is untrue in pretty much any real world app. If all we 
wanted to do was CRUD, we'd all switch to RoR. There are often other things 
that need to be done, surprisingly.

Sure, it should be easy to do crud stuff, as long as you all keep in mind that 
that's the very basics, and usually the meat of the app is in non-crud work.

Furthermore, everyone right now 'gets' the pattern, and knows how to handle 
crud stuff using actions. Some people might want to define a superclass that 
does the listing, and a subclass that does the editing. Some might choose to 
use different actions entirely, some might just go with one class and many 
commands. All these solutions are sensible some of the time, at worst. So 
that's my plea for keeping the command syntax.

The idea of archetypes, while nice in theory, doesn't work in practice. Objects 
don't live in an isolated happy land where each one maps to an action. They 
interact with one another, they impact one another, and many actions exist that 
manage these relationships. What's the archetype, for example, for 
'asynchronously send an email'?

So to sum up:

CRUD is a useful problem to try and solve, just don't get too hung on it being 
*the* problem.

Simplicity (even if it involves some inelegance, eg, url's with ! in them) 
makes users Happy. 

Every single snippet you posted looks ugly to me, and this project isn't going 
to impress anyone if it ends up with anything vaguely similar.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=41559&messageID=82960#82960


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to