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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:51:04+00:00 2026-05-26T07:51:04+00:00

They always talk about extendability and flexibility when writing code, but here I am

  • 0

They always talk about extendability and flexibility when writing code, but here I am wanting to expand my webapp and I have no idea how to do it.


What I have:

I have a completed webapp that works similarly to a calendar (though not exactly), a school has a list of teachers, each teacher has a number of tests assigned to him, the school gets a list of possible times for tests, and has to fit the teachers into the possible test times, using several rules. That much is DONE

What I want to do:

Now that the application is complete, I recieved a request to support a user/pass system, and every user will have a specific calendar that matches him (user == school in this context).

The problem:

I want to preform the shift with minimal code alteration (to the source classes). I can extend the source class, but that would mean

  1. To change all the times the class is referred to in the code to the new name
  2. Simply adding more code

The point is to have each user a database for his own.

LET ME JUST CLARIFY, MAKING THE USER PASS LOGIN SYSTEM IS NOT THE PROBLEM, THE PROBLEM IS TO EXTEND THE CODE TO ACCOMMODATE THE MULTIPLE USER ENVIRONMENT


Database Structure:

Fixed Tables:

teachers

id | name

Monthly Tables:

The program is updated each month, and history save is required, therefore these tables are added EVERY MONTH.

schedule_month_year – The actual schedule.

id | datetime | teacherid

requests_month_year – Contains the requests from the teachers (I want a test on dd/mm, or I don’t want on dd/mm)

id | teacherid | wantsornot

teachers_month_year – Contains information about teachers and how many tests they have for this month.

teacherid | tests

I’m looking for good advice here, maybe I initially wrote my code wrong, in which case, how do you write code preparing for events you don’t know that might happen? (The code I currently have was already re-written nearly from scratch because I was requested to add a change too large to accommodate).

  • 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-26T07:51:05+00:00Added an answer on May 26, 2026 at 7:51 am

    Sometimes I get the idea that extensibility is a hyped up buzzword. It’s not really. It does have merit. However, many touting the benefits of extensibility leave the impression that you can extend an application with virtually no work. This illusion falls apart in the face of database interactions because changes/additions to a database structure invariably necessitate changes in code. The truth behind extensible software is that it’s not easy to extend; rather, it’s easier than the alternative.

    In this specific case, Maxem has the right idea. The fact that it “requires a change of all queries, which is quite a lot” is inconsequential. Since you have a working app, the extra work entails only those things required to extend it as opposed to a complete rewrite/redesign. If all you have to do is add some databases and change some queries, then you’re in a good position.

    how do you write code preparing for events you don’t know that might
    happen?

    Design principles and patterns seek to answer this very question.

    You may also benefit from Agile software development which addresses the issue of changing requirements among other things.

    I believe experience also plays a crucial role here. In the future, when you design an app intended for a single user, you’ll instinctively start thinking about how it might be extended to multiple users and design the app accordingly. Please understand that I’m not implying you’re inexperienced. My point here is that each new experience adds to your arsenal of techniques.

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

Sidebar

Related Questions

I always believe they did, but seeing some answers here make me doubt... Can
I always thought they were about the same thing but someone pointed me out
I'm new to silverlight, and always when reading silverlight tutorials they talk about RIA
I am constantly writing custom WebParts but after I deploy them, they always get
In Toyota manufacturing lines they always know what path a part have traveled. Just
I've seen examples for load() and ready() , but they always seem to apply
Unicode has a million icon-like glyphs, but they're not always easy to search by,
Everyone likes to talk about reusability. Where I work, whenever some new idea is
All great stories they always start with those 4 magical words... I have inherited
I use the previewKeyDown() function for some controls in my project but they always

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.