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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:01:07+00:00 2026-05-16T17:01:07+00:00

So we are this company with currently 3 browser based games. We are just

  • 0

So we are this company with currently 3 browser based games. We are just 4-5 coders employed and would really like to improve the synergy from our coding.

So we are considering making a more generic framework. Currently our games consists of one big mix of html, php, javascript, css & flash (+databases).

So basically I would like to have only one forum code, one message system code, payment gateway etc, instead of all the pages we got now thats ‘almost’ identical and yet so far. What technologies and structure would you guys recommend for making this mess more module based and generic.

The sites in question are
http://trophymanager.com
http://trophyhockey.org
http://bigbuckcity.com

  • 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-16T17:01:07+00:00Added an answer on May 16, 2026 at 5:01 pm

    The basic idea is to search for duplicate code, put that in a separate module/class/file and reuse it where possible. This is how you could do that:

    Split the code of each application into these often used chunks:

    1. a view layer, the user interface. (HTML, JavaScript, CSS, Flash)
    2. a business logic layer, the validation checks, workflow etc. (PHP)
    3. a data layer, the storage and retrieval of data. (PHP, Database)

    Investigate if each layer really is different from the others or can be shared. Strive for shared business logic and data layers. Ideally you create applications that basically work the same but only have a different user interface (skin).

    Merge the duplicated layers into single implementations and combine them with the specific skins. So for 3 forums you have 1 data layer, 1 business logic layer and 3 UI’s.

    A second way of combining code might be done if each application uses different techniques for a specific layer.

    You should look for ways to use the same frameworks for a layer across applications. For example you could decide to always use PDO for the data layer. That reduces the time to build the next application because you don’t have to learn new techniques for each application.

    You might discover that parts of the code for a layer in one application are the same in that layer in a second application. Put this code in a separate module you share across all applications.

    One last suggestion, if you haven’t done so yet, decide on a set of coding standards for each technique, with naming conventions, file layout, used patterns etc. That makes it easier for a developer to read and understand code written by a colleague and increases the change of finding code to reuse.

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

Sidebar

Related Questions

I maintain the build system at my company, which is currently using CVS. This
I am scraping some website content which is like this - Company Stock Rs.
I want to have URLs like this: some-company-name-deal-id-6.htm So the rewrite rule should ignore
I defined a simple Document, like this: class Company(Document): screen_name = StringField(max_length=100, required=True, unique=True)
Our company is considering upgrading our SQL server. At this point, would it be
I'm a tester and currently evaluating QTP 11 on my company's Silverlight 4.0 browser
This is the data currently located in one column: Title Info - Company Here
Our company would like to put some marketing/training content onto USB thumb drives to
In my current company, we have one tester. Having spoken to this tester, she
Here is the situation. This small company I'm working with wants to have a

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.