Classic ASP : design and spaghetti code

cyber.microp

New Member
I am stuck in front of a design problem for one of my script. Its role is to be a kind of an adapter between an xml file and javascript. In other terms, it reads xml datas and generates a javascript code with respect to them. At the moment, I have one big file that does that. Since I want to produce good code, I am thinking about refactoring this spaghetti. I thought of creating an object that acts as data provider which gets the datas from the xml and saves them in a data structure (which one ? Tree ?) while another object parses the javascript. However, it does not look enough proper to me. Thus I come here to get some pieces of advice. Do you think about a better design ? Should I use ASP.net ? If yes, using which pattern ? Thank you for your help. The stackoverflow community is impressive !
 
Back
Top