16 ms·
Once nice thing about Flash (and believe me, I don't think there are many) is that it can go a long way towards cementing the concept of OOP to beginning progra
by AdmiralAsshat 9y ago
Once nice thing about Flash (and believe me, I don't think there are many) is that it can go a long way towards cementing the concept of OOP to beginning programmers.
I was taking a high-school C++ class at the time, but the whole "everything is an object" concept just didn't stick. It was still in the abstract sense and not tangible.
You start to play with Flash and ActionScript, however, and suddenly each instance is a physical thing you can see and interact with. Each copy of the thing you make inherits those properties and that action script.
It was a very useful learning experience for me. I worked through a Pong tutorial and then tried to extend it as a personal project to be a four-corner pong. It became very clear the benefits of making a position-agnostic "Paddle" class when the left-right paddles' collision detection went haywire upon copy-pasting them to the top and bottom of the screen.