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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:34:52+00:00 2026-05-12T08:34:52+00:00

I was wondering why there are so few examples and reading material on how-to

  • 0

I was wondering why there are so few examples and reading material on how-to program to modules.

Pretty much every large project you start to get lost there in the middle of so much code, even if its on a separate folder. (Well, I do)

I would like to understand and maybe see a quick example or link to one, of a design thats oriented to modules.

Module, its a stand-alone part of a system. Which you can always attach more modules to the main module.

fooApp-Core.jar(.dll)
fooApp-BI
fooApp-Reports

Core, would have the basic domain model, with its required lib, ui, controlers and views.

But how would Core know if BI is available to be used? and them make the necessary calls ?

Did I made myself clear?

Please if you could, i would love an example.

  • 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-12T08:34:52+00:00Added an answer on May 12, 2026 at 8:34 am

    Distinguish between the actual pieces of code (classes) and the modules in which they are delivered. In a simple case you launch an application and just generally say “you’ll find the classes you need in these places” the places being a list of modules. We use PATHs (for DLLs) and/or CLASSPATHs (for Java classes). The application doesn’t usually need to know which DLL or JAR a class came from. [What about the possibility that more than one module contains a copy, perhaps with different versions, of a class? That’s when classloading gets to be so much fun, but taht’s a whole other story.]

    So how does a general framework decide which classes it needs? Lots of possible ways, but conceptually by some kind of configuration.

    Have a look at the ideas of Inversion of Control and Dependency injection, maybe start here

    I’ll show how your example might be changed to do the kind of thing you’re asking about. I don’t want to use the word “module” here it has too many possible meanings. Instead I’ll use “plugin” – one or more pieces of code are made available, our view wants to use all that are provided.:

    Controller {
    
       // the list of what you have been calling modules
       List<IPlugins>  myPlugins;  
    
       initialise() {
            // somehow we initialise that list of plugins
            // imagine we read a config file, or some such
            // If you read about Dependency Injection you'll see 
            // how we might do that
       }
    
       index(){
    
         viewModel.setUser("John");
         viewModel.setCategory("Programer");
    
         showView(viewModel);
     }
    
    }
    
    View {
    
       showView(viewModel) {
          System.out.println(viewModel.getUser().toString());
          System.out.println(viewModel.getCategory().toString());
    
          forEach( onePlugin : viewModel.getPlugins() ) {
              System.out.println( onePlugin.getDisplayString() );
          }
        }
     }
    

    This works if we can assume that all plugins conform to some agreed interface, here we expect to be able to call getDisplayString() for every plugin.

    Typically the kind of modularity you are talking about depends upon some degree of control of what is getting plugged into the framework. It can get quite sophisticated. Languages such as Java allow you to get an Object and “reflect” to find all methods whose names look like “getXXXXX()”. So the view could be given any old object, and simply print out the result of (say) getName(), getPhoneNumber() getPostCode() …

    The key here is that we can use some agreed pattern to determine which methids to call. In that case the View can be very flexible.

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

Sidebar

Related Questions

Wondering if there is any way to get the lambda expressions that result from
Just wondering if there is any way (in C) to get the contents of
Just wondering if there is any way to get the NS records in C#.
Wondering if there is any Text to Speech software available as a plug in
Wondering if there is a good way to generate temporary URLs that expire in
Wondering if there are any well informed Linux gurus here who can answer a
Wondering if there is any tool that can help me to detect a pronoun's
Just wondering if there is an easy way to add the functionality to duplicate
Just wondering if there is a Python MTA . I took a look at
Just wondering if there's a website out there that allows you to hotlink to

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.