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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:42:51+00:00 2026-05-10T15:42:51+00:00

One thing that’s really been making life difficult in getting up to speed on

  • 0

One thing that’s really been making life difficult in getting up to speed on the codebase on an ASP classic project is that the include file situation is kind of a mess. I sometimes find the function I was looking for being included in an include file that is totally unrelated. Does anyone have any advice on how to refactor this such that one can more easily tell where a function is if they need to find it?

EDIT: One thing I forgot to ask: does vbscript have any kind of mechanism for preventing a file from being included twice? Sorta like #ifndef’s from C?

  • 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. 2026-05-10T15:42:51+00:00Added an answer on May 10, 2026 at 3:42 pm

    There are a few basic things you can do when taking over a classic ASP application, but you will probably end up regretting doing them.

    1. Eliminate duplicate include files. Every classic ASP app I’ve ever seen has had 5 ‘login.asp’ pages and 7 ‘datepicker.js’ files and so forth. Hunt down and remove all the duplicates, and then change references in the rest of the app as necessary. Be careful to do a diff check on each file as you remove it – often the duplicated files have slight differences because the original author copied it and then changed just the copy. This is a great thing for Evolution, but not so much for code.
    2. Create a rational folder structure and move all the files into it. This one is obvious, but it’s the one you will most regret doing. Whether the links in the application are relative or absolute, you’ll have to change most of them.
    3. Combine all of your include files into one big file. You can then re-order all the functions logically and break them up into separate, sensibly-named files. You’ll then have to go through the app page by page and figure out what the include statements on each page need to be (or stick with the one file, and just include it on every page – I can’t remember whether or not that’s a good idea in ASP). I can’t comprehend the pain level involved here, and that’s assuming that the existing include files don’t make heavy use of same-named globals.

    I wouldn’t do any of this. To paraphrase Steve Yegge (I think), ‘there’s nothing wrong with a classic ASP application that can’t be fixed with a total rewrite‘. I’m very serious about this – I don’t think there’s a bigger waste of a programmer’s time in this world than maintaining an ASP app, and the problem just gets worse as ASP gets more and more out of date.

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

Sidebar

Ask A Question

Stats

  • Questions 65k
  • Answers 66k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

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

    • 7 Answers
  • Editorial Team

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

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer There is no race possibility in you example (it' correctly… May 11, 2026 at 11:21 am
  • added an answer Option 1 : make sure that all different types of… May 11, 2026 at 11:21 am
  • added an answer I've been using recaptcha for a couple of sites with… May 11, 2026 at 11:21 am

Related Questions

One thing that's really been making life difficult in getting up to speed on
One thing that bugs me about IE is that when it goes to load
One thing that annoys me when debugging programs in Visual Studio (2005 in my
One thing that always strikes me as a non-cryptographer: Why is it so important
One thing that's always confused me is input escaping and whether or not you're
There is one thing that I do not understand... Imagine you have a text
I'm currently evaluating CodeRush and one thing that I liked most when reading the
I have a solid understanding of most OOP theory but the one thing that
I've used ConfigParser for quite a while for simple configs. One thing that's bugged
One thing i noticed about WPF is that it combines various concepts from other

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.