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 878205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:44:11+00:00 2026-05-15T11:44:11+00:00

What are some lesser known tips for implementing a loosely-coupled MVC structure in a

  • 0

What are some lesser known tips for implementing a loosely-coupled MVC structure in a non-trivial desktop application (e.g. having at least two levels of views/controllers and more than one model)?

  • 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-05-15T11:44:11+00:00Added an answer on May 15, 2026 at 11:44 am

    Use interfaces.

    A lot. I like using the “IDoThisForYou” style (even in a language where this isn’t idiomatic) because an interface represents a role that another class can use.

    Make the controllers responsible for controlling interaction

    The controllers control interaction between domain objects, services, etc.

    Use events to pass information between controllers

    Let every controller who needs information subscribe to the event. Use an interface.

    Don’t put presentation information on your domain objects

    Instead, allow the controller to create a presenter or view model which has the information you need. This includes no “ToString()”. If you’re in a language without multiple inheritance you might end up with a bit of duplication between presenters. That’s OK – duplication is better than coupling, and the UI changes a lot anyway.

    Don’t put logic in your gui

    Instead, allow the controller to create a presenter or view mdoel which has the information you need. This includes train wrecks like “MyAnimal.Species.Name” – make it present “SpeciesName” instead.

    Test it

    Manually. There is no substitute. Unit and acceptance testing goes a long way, but there’s nothing like bringing the app up and actually using the mess you wrote for finding out how messy it is. Don’t pass it to the QAs without having a go yourself.

    Oh, and don’t mock out domain objects in unit tests. It’s not worth it. Use a builder.

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

Sidebar

Related Questions

What are some of the lesser know, but important and useful features of Windows
NHydrate is a lesser-known ORM for .Net - I stumbled across it for the
Some web applications, like Google Docs, store data generated by the users. Data that
Some WPF controls (like the Button ) seem to happily consume all the available
Some API returns me XmlCursor pointing on root of XML Document. I need to
Some things look strange to me: What is the distinction between 0.0.0.0, 127.0.0.1, and
Some Eclipse plugins are mandated by your environment. The appropriate source code management plugin,
Some e-Marketing tools claim to choose which web page to display based on where
Some programming languages such as Java and C# include encryption packages in their standard
Some files in our repository are individual to each developer. For example some developers

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.