Our aim is to deliver the best technology solutions. We specialise in CMS, MLM,MVC
User interface logic tends to change more frequently than
business logic, especially in Web-based applications. For example, new
user interface pages may be added, or existing page layouts may be
shuffled around. After all, one of the advantages of a Web-based
thin-client application is the fact that you can change the user
interface at any time without having to redistribute the application. If
presentation code and business logic are combined in a single object,
you have to modify an object containing business logic every time you
change the user interface. This is likely to introduce errors and
require the retesting of all business logic after every minimal user
interface change.
In some cases, the application displays the same data in
different ways. For example, when an analyst prefers a spreadsheet view
of data whereas management prefers a pie chart of the same data. In some
rich-client user interfaces, multiple views of the same data are shown
at the same time. If the user changes data in one view, the system must
update all other views of the data automatically.
Designing visually appealing and efficient HTML pages generally
requires a different skill set than does developing complex business
logic. Rarely does a person have both skill sets. Therefore, it is
desirable to separate the development effort of these two parts.
User interface activity generally consists of two parts:
presentation and update. The presentation part retrieves data from a
data source and formats the data for display. When the user performs an
action based on the data, the update part passes control back to the
business logic to update the data.
In Web applications, a single page request combines the
processing of the action associated with the link that the user selected
with the rendering of the target page. In many cases, the target page
may not be directly related to the action. For example, imagine a simple
Web application that shows a list of items. The user returns to the
main list page after either adding an item to the list or deleting an
item from the list. Therefore, the application must render the same page
(the list) after executing two quite different commands (adding or
deleting)-all within the same HTTP request.
http://codebeans.in/
0 comments: