in reply to the trend of the presentation layer driving application logic
I've talked about this a bit with Rob Nagler (of Bivio) on the mod_perl list. I really don't agree that the quoted line from the JSP page constitutes business logic. It's a user interface. I also don't think there's any shame in taking the user interface as a starting point to determine the model. The UI is really important, and a UI design often ends up capturing important functionality issues that were not obvious in the abstract.
What Bivio has done is create a presentation abtraction layer. They provide some data with loose instructions on how it should be displayed, and their presentation system turns that into HTML. It puts the "HTML brain" inside of some Perl code that knows how to take instructions like "Grid" and "pad => 0" and turn them into HTML.
This is not a practical solution for the majority of web projects. The design is typically not done by the programmers, and needs to be changeable by people who are not programmers. The Bivio approach doesn't accomplish these goals. I think that one reason it worked so well for them is that they are doing sites that are not very graphically rich. Take a look at http://bivio.com, the investment site they did. It's heavy on functionality, and has a very simple design.
You might be a curmudgeon like me, who wishes more sites looked like Yahoo and worked on Lynx, but being a developer for modern on-line businesses means finding ways to accomodate sites with fairly heavy graphic design elements. Tools like templating modules have done this pretty well, and will probably fit more people's needs than an abstract layout system that generates HTML.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: the trend of the presentation layer driving application logic
by princepawn (Parson) on Nov 03, 2003 at 01:49 UTC | |
by perrin (Chancellor) on Nov 03, 2003 at 02:12 UTC | |
|
Re: Re: the trend of the presentation layer driving application logic
by robnagler (Novice) on Nov 04, 2003 at 21:37 UTC | |
by perrin (Chancellor) on Nov 04, 2003 at 21:57 UTC |