Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between presentation layer and user-interface

What is the difference between a presentation layer and an user-interface?

like image 260
Rookian Avatar asked May 25 '10 18:05

Rookian


2 Answers

They are close in execution, but they come from different directions. They aren't well defined, depending on the specific context, they may be almost identical or overlap only slightly.

Presentation layer is term in the taxonomy of code and associated resources.

User Interface is the implementation of the intended User Experience in terms of page layout, page transitions and page control elements. (I am using "page" loosely here - you can replace it with "form" or "window").


The distinction is important when you consider how a user interface gets created. If you come from the code, you are basically working with the needs and mechanisms of the code - what data is there to show?, and in what ways your code can change that?

If you come from the user, the questions are rather what data the does the user need? and what data the user wants to change?

(The first one isn't necessarily worse - it's perfect for users who have a good idea of the inner workings of the application, and it makes it often easier to make use of the full capabilities of the code.)

like image 160
peterchen Avatar answered Oct 22 '22 17:10

peterchen


The link in the John's answer refers to the OSI model, which is not the term intended here IMHO.

I think presentation layer and UI are overlapping concepts, though not 100% overlapping.

Form one angle: The term presentation layer suggests a layered structure in the application, while the term UI does not suggest anything about the inner structure of the application.

From another angle: The term UI might only include the collection of controls and their event handlers, while the term presentation layer could include some deeper non visual parts of the application like ViewModels or Presenters.

like image 30
Dave Avatar answered Oct 22 '22 17:10

Dave