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

  • Home
  • SEARCH
  • 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 499857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:01:41+00:00 2026-05-13T06:01:41+00:00

I currently ran into a problem I can not really solve by myself: I

  • 0

I currently ran into a problem I can not really solve by myself:

I ve started to code a “small” framework (browsergame-framework), which follows the MVC pattern in some way.

Now I have my index, bootstrap, db adapter, dispatcher, wrapper, but I do not really know “how” to link them.
I coded their methods etc. but I do not know how to design them to work like an engine.

And the next problem are my controllers, I do not know how to “link” them so that they easily can access the whole framework….
Yes, it is confusing, that is why I need your help, some generic scheme of “how a framework program flow” should like would be very nice.

Thank you.

  • 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-13T06:01:42+00:00Added an answer on May 13, 2026 at 6:01 am

    you’re putting the cart before the horse. frameworks are not written, they’re grown. see Evolving Frameworks from Ralph Johnson, one of the Gang of Four.

    edit

    I do not understand, what the author means with “application”, does this
    mean raw-coded-project or does this mean project with basic functionality
    which will be taken to the later framework.

    Either, depending on your expertise in programming and the problem domain.
    It’s the goal (a useful framework) that’s important, the process should simply support you
    in achieving it as best as possible. You may either start slow, develop three applications in the same problem domain without any code sharing among them,
    and just look at the code bases and see what they have in common, and possibly refactor these three finished applications to converge the code, and extract the common pieces.
    This won’t give you any boost during the development of the second and third application,
    but neither will it hinder their development with concurrent refactoring of the previous ones.

    Let’s say you want a framework to ease writing browser-based, turn-based
    strategies.

    Your first turn is to write such a game without thoughts of reusing the
    code outside this single game, but with attention to code reuse within
    it: refactor mercilessly, apply all the principles of programming: OCP,
    SRP, DRY, etc. Especially DRY. Code reuse (Don’t Repeat Yourself) is a
    basic principle of programming, and the first step on the path to a
    framework. You will end up with a library of classes and/or functions
    that are used across the game.

    Your second turn is to write, adhering to the principles mentioned above,
    another browser-based, turn-based strategy, using the code of the first
    game. You’ll find that much of it is specific to that first game. Use
    the pieces that fit in the second one without modification, refactor those
    that are useful but don’t quite fit so that they are useful and do fit
    in both games.

    Repeat the procedure with the third game.

    Three is the smallest number that gives you any hope of arriving at code
    that is truly reusable across the problem domain (think triangulation),
    not a guarrantee that it’ll happen. OTOH, deriving a useful framework
    without the support of real-world applications is a sure way to end with a
    pile of useless crap.

    Johnson:

    Developing reusable frameworks cannot occur by simply setting down and
    thinking about the problem domain. No one has the insight to come up
    with the proper abstractions.

    Read the “Three Examples” section carefully.

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

Sidebar

Ask A Question

Stats

  • Questions 296k
  • Answers 296k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer When you do the select, either create a class to… May 13, 2026 at 7:05 pm
  • Editorial Team
    Editorial Team added an answer Static has multiple meanings in C++. Static variables in C#… May 13, 2026 at 7:05 pm
  • Editorial Team
    Editorial Team added an answer Wait a minute... Select count(Name) as TotalComments from TableName where… May 13, 2026 at 7:05 pm

Related Questions

The company I work for creates applications for the Blackberry platform. We've been working
So for some research work, I need to analyze a ton of raw movement
This question has been asked before but 1) the user never accepted an answer
I would really appreciate any suggestions, no matter how simple or complex, to help
I'm currently working on a test plan and ran into a possible problem and

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.