For about the last 5 months I have gone back to coding in classes again, and im slowly starting to remember why i went off them in the first place! I need to voice my opinion before i explode, and id like to hear your views too. Please - if you disagree, let me know. I want to be wrong.
First of all... theres the creating them. I dont work with other people. Im fine just accesssing 1 file. It really gets tedious navigating between like 5 .as scripts, and saving them before i can even test what ive done. I dont like doing it. Im testing the file for a reason! When its working the way i want then ill save. This dosnt bother me in other lanuages, but it seems a bit ott in flash...
Then theres the stupid ammount of complexity classes add. I need to make classes jus to do coding in a .fla file does anyway. This includes the what is usually annoying task of passing varaibles between classes and making them communicate.
And ofc, how could i forget, the argument that classes make your code easier to read. Brilliant.... except only i need to read them.... Also i cant say i agree with this argument. You gotta be moving between severall differnt .as files jus to work out what is going on, comapred to what could often be similarly achieved with 2 or 3 functions all listed underneath each other.
But the main thing that gets to me is, in exchange for these neat little .as files, which look so pretty and are so easy to read, we sacrafice so much speed and simplicity.
To me, classes are nuthing more than over complicated functions, on a powercraze. They think they are so high and mighty, but at the end of the day there aint nuthing you can code in a class file that you couldnt code with jus a function on the timeline. And furthermore I could create the time line function alot more simplier, quicker, and it would be alot more effeicent.
The one thing that is appealing about classes is thier ease of re-use..... however at the same time, this adds more to the complication of coding, and aiming to make a class reusuable suually impacts on efficency. I still copy and apste my functions from old projects when using classes, because i know i need to modify them to suite this projects needs.
For your average flash coder, workin on his own, i fail to see what the benefits of classes are.