All the time but I don't like ASP's class support so I just can't be bothered.
Look Object Oriented Programming (OOP), in other words class based programming, is an entirely different way of thinking. You think about the data you have rather than what you want to do. There is a mental shift involved in writing that sort of code. When you write procedural code you write black box subroutines. That is you give it some inputs and it produces some outputs. It is like pushing the accelerator on a car. You push it up or down (input) and the car goes faster or slower (output). You don't know exactly what it does (hence it is called a black box), but you know how put in inputs to get outputs.
OOP is where you create black box objects. Each object can have subroutines and attributes. For example you might create a car object with an attributes: Litres of petrol, colour, model and with subroutines (member functions) accelerate, brake, steer.
I don't touch ASP classes because the things that I have come to expect from OOP just aren't there. I'd find it hard to write OOP code in VBScript.
regards
David Cameron
|