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.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re: Display logic is driven by business rules IMHO