473,604 Members | 2,487 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Do Design Patterns conflict with Layered Architecture?

DS
I'm trying to understand how these two concepts could work together
architecturally (if they can.) I realize both concepts provide benefits
of re-use and ease of maintenance. Which is important when you are
setting up multiple sites that are similar.

But it seems like using both Design Patterns and Layered Architecture
together would create conflicts -- especially in the area of keeping
layers loosely coupled (and even physically on separate server tiers
and possibly with Web Services APIs for each Layer on a service buss)
while still implementing system-wide patterns of design.

For example, consider an ecommerce system that has a Presentation Layer
(on the Web App tier), Business Logic (on the Middlewear tier), and a
Data Access Object layer (on the Database tier).

Along comes a PHP programmer with a JAVA background who believes in the
benefits of using Model-View-Controller (MVC) design patterns.

It seems like constructing "data objects" for creating the "Data Model"
are going to require closer coupling of Business Logic and Data Access
Layers.

It seems like constructing "view objects" for various role-based
interfaces and data states, and subsets of data (like date ranges,
etc.) may require closer coupling of the Presentation Layer and
Business Logic.

It seems like setting up "broadcaste r objects" and "listener objects"
for Controller events system-wide could require closer coupling of all
three layers.

Any opinions on how this seems at cross-purposes?

Thanks,

--Dave

Aug 9 '08 #1
1 2029
On Aug 9, 10:30 pm, DS <d...@noSpamPle ase.comwrote:
I'm trying to understand how these two concepts could work together
architecturally (if they can.) I realize both concepts provide benefits
of re-use and ease of maintenance. Which is important when you are
setting up multiple sites that are similar.

But it seems like using both Design Patterns and Layered Architecture
together would create conflicts -- especially in the area of keeping
layers loosely coupled (and even physically on separate server tiers
and possibly with Web Services APIs for each Layer on a service buss)
while still implementing system-wide patterns of design.

For example, consider an ecommerce system that has a Presentation Layer
(on the Web App tier), Business Logic (on the Middlewear tier), and a
Data Access Object layer (on the Database tier).

Along comes a PHP programmer with a JAVA background who believes in the
benefits of using Model-View-Controller (MVC) design patterns.

It seems like constructing "data objects" for creating the "Data Model"
are going to require closer coupling of Business Logic and Data Access
Layers.

It seems like constructing "view objects" for various role-based
interfaces and data states, and subsets of data (like date ranges,
etc.) may require closer coupling of the Presentation Layer and
Business Logic.

It seems like setting up "broadcaste r objects" and "listener objects"
for Controller events system-wide could require closer coupling of all
three layers.

Any opinions on how this seems at cross-purposes?

Thanks,

--Dave
Not really - the presentation / business / storage layers correspond
directly to the view / controller / model patterns. But the important
thing to remember is that MVC does not simply apply at the top level -
within the 'view' for, say, an appointments editor form, you may will
implement individual components using a MVC model - e.g. in a
component for managing the time of an event the model renders the
widget using the time and date it gets from the controller, and
returns the user amended data back to the controller. The controller
maps a UTC time to the users timezone using the appropriate date
format and language. The model handles interaction with the form's
model.

The view object for this component may in turn be composited of MVC
objects.....

C.
Aug 10 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
1924
by: Uwe Mayer | last post by:
Hi, I have the following inter-class relationships: __main__: (in file LMCMain.py) imports module FileIO defines class LMCMain instanciats main = LMCMain(...) FileIO.py:
2
1848
by: Matthew Hood | last post by:
My company has expressed a desire to convert an existing MS Access application to a full VB.NET application. My experience is with VB6 so I want to ask a few questions and get some input on the best way to handle the following design: Situation: We want to allow our customers to install with one of the following options: 1. Use an Access MDB file as the data backend. 2. Use a SQL Server backend. (Either MS SQL, or MySQL) 3. Use an...
5
2367
by: Ludwig Wittgenstein | last post by:
Other than the Design Patterns book, which book(s) is/are the best to learn object-oriented software design/architecture from ?
7
4581
by: Jon Davis | last post by:
I have a couple questions. First of all, would anyone consider a multi-layered programming approach (building business objects that are seperate from data access logic and seperate from user interface logic but that interface the UI and the data) an n-tier implementation by definition? Or does n-tier necessitate a network-distributed architecture (beyond IIS and SQL Server, i.e. COM+/MTS/MSMQ/WCF) in addition to the layered programming? If...
3
2499
by: Richard | last post by:
Hello, How do you guys implement 3-tier applications with .NET's design mode controls. For example, on an ASP .NET form, the SQLDataSource and the Gridview belong in 2 different tiers. If they are supposed to be in 2 separate DLLs, how can I have them on the webform and plug them in together? Thanks in advance,
0
1485
by: Joerg Rech | last post by:
Dear software practitioners, consultants, and researchers, we are currently conducting an international survey about architecture and design patterns. Our goal is to discover how familiar people are with these patterns (and anti-patterns) as well as to elicit the information need, the usage behavior, and the experience of software organizations regarding architecture patterns and design patterns.
0
1600
by: Joerg Rech | last post by:
Dear software practitioners, consultants, and researchers, we are currently conducting an international survey about architecture and design patterns. Our goal is to discover how familiar people are with these patterns (and anti-patterns) as well as to elicit the information need, the usage behavior, and the experience of software organizations regarding architecture patterns and design patterns. Therefore, we would like to invite you...
7
3100
by: =?Utf-8?B?bWF2cmlja18xMDE=?= | last post by:
Hi, I would like to know more about design patterns and specifically using C#. Can any one recommend a good book? Thanks
6
1956
by: abcd | last post by:
I have 13 yrs experience working from Visual Studio 1.x today VS 2005 (both VB and C++) Most of the time I have worked in N-tier applications, Web applications, Windows applications....My company is a small company very limited budget..We have enterprise web products written in VB/VC++, class ASP. We have not even used .NET etc. Lots of people are talking about Design patterns, standard architecture (SOS or other IBM). I am very...
0
7997
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8419
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8409
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8065
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5441
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3907
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3955
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2434
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1266
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.