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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T14:54:56+00:00 2026-05-17T14:54:56+00:00

I have been playing around with the concept of ‘module’ that some mvc frameworks

  • 0

I have been playing around with the concept of ‘module’ that some mvc frameworks implement and it seems like a good solution, and also with TDD, but I think there must be something more, like a design pattern I missed (I only know a few), that will let me build applications that can grow (in code) with no limits.

Any thoughts?

edit : Another good thing about modules is that they can be built in a way that they are application-independent, so they can be reused.

  • 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-17T14:54:56+00:00Added an answer on May 17, 2026 at 2:54 pm

    In “Facts and Fallacies of Software Engineering,” Robert L. Glass says:

    Fact 15. Reuse-in-the-small is a well-solved problem.

    Fact 16. Reuse-in-the-large remains a mostly unsolved problem.

    Fact 17. Reuse-in-the-large works best in families of related systems.

    In other words, you can reuse modules, but only between applications that work very similarly. Trying to make modules so versatile that you can resuse them in any application is too hard. You end up making modules that are so configurable that they’re overly complex to use, and contain lots of code to handle scenarios that are of no use to a given application.

    You’d be better off coding a custom module for each application, that does just what that each application needs, and no more. This is especially important for a language like PHP, where code is loaded on each request, so the volume of code has a significant impact on performance.

    Reusing more fine-grained functionality is different. The uses of say, logging, is reasonably similar between applications no matter how different the applications are from one another. This is why most frameworks do really well with general-purpose service-style classes.


    Re comment from @A_Var:

    You can make a class reusable if you know the range of possible functionality in advance, and therefore the parts that need to be extensible. This is relatively easy for a simple class that’s used similarly in every app. I mentioned the example of logging. This is what Glass refers to as reuse-in-the-small.

    But we’re not talking about simple classes. If you try to do the same thing with a complex module (think of multiple classes to handle multiple screens, forms, different database schema, etc.), it’s too hard to write the code to be generic enough to cover all the specific needs for each application. You end up needing more code in the generic module than the sum total code you’d need to write separate modules for each app.

    Also, testing becomes very costly, because any change you make to the base module requires that you re-test all the apps that use and extend it.

    In the end, it’s less work to write a new module for each app, and you can gain what efficiency you can by employing reusable components that are more fine-grained.

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

Sidebar

Related Questions

I have been playing around with some debugging and wrote some C code that
I have been playing around with the Rhino ETL library and really like the
I have been playing around with NSURLConnection. Now I'm trying to grab some data
I have been playing around with creation of pdf documents for a project that
I have been playing around with Scala parser combinators for some time now, and
I have been playing around with different scripts, I found one that works for
I have been playing around with haskell and I found out that if I
I have been playing around with MVC-Mini-Profiler, and found it very useful. However, on
i have been playing around with MVC. I am currently stumped on with html
I have been playing around with writing some simple card games in Python for

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.