I work with a actively developed production web application that is written entirely
in Classic ASP. Like most classic asp applications it is a mess full of spaghetti code. So I am beginning to break pieces into simple VB classes to gain some basic encapsulation benefits.
While creating the classes I feel conflicted that a higher level language to do so. Are there any recommendations on how this could be done? I have two thoughts:
COM Objects and Web services. I’m leaning towards the web service route but would greatly appreciate any suggestions on how to best encapsulate the business logic of a Classic ASP system into a higher level language.
What do you recommend?
As a start I recommend you read about MVC.
Then you can switch to a framework that support such a concept, such as the ASP.NET MVC and got even further by using a SoC tools, like Castle Windsor, NHibernate, etc.
If you don’t want to embark on such a OMG start from scratch journey, then a web service will be the preferred solution for encapsulating the business logic. (following the model-view design pattern).
COM objects will be a bad solution for this task. They are not intended for web applications or logic management.