Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9170829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:04:51+00:00 2026-06-17T16:04:51+00:00

As a learning exercise on software architecture (and also on Visual Studio), I decided

  • 0

As a learning exercise on software architecture (and also on Visual Studio), I decided to create a set of four minimal WPF/C# applications (solutions) with a single purpose: read some circle parameters from file when a button is pressed, and display the result on the GUI:

  1. One application reads from .txt file and displays the parameters in a textbox;
  2. One application reads from .xml file and displays the circle in a canvas;
  3. One application reads from .txt and displays the circle;
  4. One application reads from .xml and displays the text parameters;

That is, I have one Domain project containing a Circle class, two DataAccess projects (one for xml and other for txt), and two presentation projects (one for geometry drawing, and other for displaying text). Each of the four solutions refers to a combination of these reusable, modularized projects.

Also, I’d like to use the FAÇADE design pattern, so that the Presentations “see” the façade but not data-access or domain. The Façade sees the Domain and the DataAccess, and each DataAccess just do their business blindly.

THE PROBLEMS are these:

  • I needed two Façades, because I have to create a namespace dependency to one of the two DataAccess layers in order to use the DataAccess namespace inside the Façade project. So one Façade depends on the XmlBackend, and other depends on TxtBackend;
  • Each Presentation depends on the Façade so that the namespaces are available, but SINCE I HAVE TWO FAÇADES, each Presentation project would end up depending on two different Façade projects, which is a Bad Thing;

I tried to create a single Façade project, so that each Presentation would refer to it, but then this Façade would depend on two different DataAccess backends. Then in a solution, I could not have only one DataAccess backend project, because the Façade project would depend on two different ones.

So the question is: How I could resolve this so that I can have four solutions, each solution having only the necessary projects (the domain, the façade, one presentation and one data backend), the layering architecture not being violated, and each project not needing to know too much about the others?

Update: the Msdn Library says the folling, which I think might be a hint: “[solution explorer allows you to] add items that are useful to multiple projects in the solution or to the solution without referencing the item in each project.”

Thanks for reading!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T16:04:52+00:00Added an answer on June 17, 2026 at 4:04 pm

    If you want full decoupling and absolutely need the Façade to be reusable independently from the two DataAccess modules, you could have the Façade layer declare an IDataAccess interface that classes in both DataAccess projects would implement.

    A third party module (one of the GUI’s ?) would then inject the correct DataAccess concrete implementation into the Façade as needed at runtime.

    As a side note, part of your problem comes from the fact that in this architecture, 1 project pretty much == 1 class, so object tight coupling and project tight coupling concerns are mixed up.

    However, you should note that object tight coupling leads to fragility, poor maintainability and testability while project coupling only affects reusability. In other words, you could live with Façade referencing both DataAccess projects, it would only mean that you can’t reuse Façade in another context/architecture without the DataAccess projects somewhere at hand.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As a learning exercise i want to create a simple web api and consume
I'm trying (as a self-learning exercise) to create a Clojure macro that will generate
Im quite new to generics and as a learning exercise Im trying to create
I am new to dynamics integration and as a learning exercise I have set
As a hobby project and as a learning exercise, I decided to implement a
As a learning exercise I'm building a basic scientific computation environment based on .NET.
I'm creating a blog engine as a learning exercise and one particular problem has
I am writing a huffman implementation in Python as a learning exercise. I have
I'm working on building a pretty simple site mainly as an exercise in learning
Just started learning algorithms. So the exercise is to find if statement is always/sometimes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.