in reply to Display logic is driven by business rules IMHO
The typical breakdown is that business logic defines what to display. The display logic decides how to display it.
Think of a stock quote app that can be accessed by desktop browsers and PDA/phones. In the browser you might present: price, high, low, volume, avg.volume, mkt.cap in figures, along with a day graphic and a 30-day graphic. On the PDA, you might only present the first three figures.
Your business logic doesn't need to know what kind of device the user has, it should just return all the information and allow the display logic to present it appropriately.
Likewise, if you decide to re-skin your site, the display logic will inevitably change, but the business logic will likely remain the same.
|
|---|