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

The Archive Base Latest Questions

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

I’ve got to do some significant development in a large, old, spaghetti-ridden ASP system.

  • 0

I’ve got to do some significant development in a large, old, spaghetti-ridden ASP system. I’ve been away from ASP for a long time, focusing my energies on Rails development.

One basic step I’ve taken is to refactor pages into subs and functions with meaningful names, so that at least it’s easy to understand @ the top of the file what’s generally going on.

Is there a worthwhile MVC framework for ASP? Or a best practice at how to at least get business logic out of the views? (I remember doing a lot of includes back in the day — is that still the way to do it?)

I’d love to get some unit testing going for business logic too, but maybe I’m asking too much?

Update:

There are over 200 ASP scripts in the project, some thousands of lines long 😉 UGH!

We may opt for the "big rewrite" but until then, when I’m in changing a page, I want to spend a little extra time cleaning up the spaghetti.

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

    Assumptions

    The documentation for the Classic ASP system is rather light.

    Management is not looking for a rewrite.

    Since you have been doing ruby on rails, your (VB/C#) ASP.NET is passable at best.

    My experience

    I too inherited a classic ASP system that was slapped together willy-nilly by ex excel-vba types. There was a lot of this stuff <font size=3>crap</font> (and sometimes missing closing tags; Argggh!). Over the course of 2.5 years I added a security system, a common library, CSS+XHTML and was able to coerce the thing to validate xhtml1.1 (sans proper mime type, unfortunately) and built a fairly robust and ajaxy reporting system that’s being used daily by 80 users.

    I used jEdit, with cTags (as mentioned by jamting above), and a bunch of other plugins.

    My Advice Try to create a master include file from which to import all the stuff that’s commonly used. Stuff like login/logout, database access, web services, javascript libs, etc.

    Do use classes. They are ultra-primitive (no inheritance) but as jamting said, they can be convenient.

    Indent the scripts properly.

    Comment

    Write an external architecture document. I personally use LyX, because it’s brain-dead to produce a nicely formatted pdf, but you can use whatever you like. If you use a wiki, get the graphviz add-in installed and use it. It’s super easy to make quick diagrams that can be easily modified.

    Since I have no idea how substantial the enhancements need to be, I suggest having a good high-level to mid-level architecture document will be quite useful in planning the enhancements.

    On the business logic unit tests, the only thing I found that works is setting up an xml-rpc listener in asp that imports the main library and exposes the functions (not subroutines though) in any of the main library’s sub-includes, and then build, separately, a unit test system in a language with better support for the stuff that calls the ASP functions through xml-rpc. I use python, but I think Ruby should do the trick. (Does that make sense?). The cool thing is that the person writing the unit-test part of the software does not need to even look at the ASP code, as long as they have decent descriptions of the functions to call, so they can be someone beside you.

    There is a project called aspunit at sourceforge but the last release was in 2004 and it’s marked as inactive. Never used it but it’s pure vbscript. A cursory look at the code tells me it looks like the authors knew what they were doing.

    Finally, if you need help, I have some availability to do contract telecommuting work (maybe 8 hours/week max). Follow the link trail for contact info.

    Good luck! HTH.

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

Sidebar

Ask A Question

Stats

  • Questions 116k
  • Answers 116k
  • 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
  • Editorial Team
    Editorial Team added an answer By adding the attributes mailNickname,targetaddress and showinaddressbook the mail enabled… May 11, 2026 at 10:33 pm
  • Editorial Team
    Editorial Team added an answer Application Settings are nice and easy to use. Right click… May 11, 2026 at 10:33 pm
  • Editorial Team
    Editorial Team added an answer You cannot - you need to know the services and… May 11, 2026 at 10:33 pm

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is

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.