At 2/25/13 11:14 AM, Toast wrote:
Last time I saw a thread about as2 vs as3 on NG I was pleasantly surprised by the objectivity of the discussion and the lack of unnecessary bashing on as2. I'm sad to see it's not always like that. There is nothing wrong in the fundamentals of AS2 coding. There is nothing at all which makes good AS2 coding methods worse than good AS3 coding methods. Flash CS3 and higher along with AS3 prohibit a couple or so practices that are associated with bad coding methodology. Mostly in this case "bad coding methodology" means coding that would hinder clarity of code and of general "game logic" in large projects.
the thing is, there's far more projects and tutorials on AS2 that encourage bad practices. It's much safer to assume that the OP has learned those bad practices, and trying to implement them in AS3 will only result in pain and misery. I'm not unnecessarily bashing AS2. I used to code in AS2 for years until I learned OOP and AS3; then I realized just how bad the language is. AS2 itself isn't bad, but it promotes the practice of AS1 - this hindered my progress in almost every way possible. AS3 prevents you from doing this; thus it's harder to learn (especially with AS1/2 in mind) but becomes much easier and more logical in the long run.
I didn't want to explain all of this (i've done it quite a bit already, and I needed to leave about five minutes after I posted) but there you are.
A second point is that your article presents a lot of things about AS3, but it doesn't explain the fundamental differences between the way AS2 procedural coding works and the way AS3 OOP projects do. It's not a presentation of how AS3 works and why it was made to work that way - something that would be useful for a coder switching from AS2 to AS3. It merely presents the visible surface of AS3, to speak figuratively. Please take into consideration that I am not bashing your article, I am only bashing your article being used to say to someone "forget as2 and read this article"
hmm, fair enough. Explaining why AS3 is so different would help. The thing is, I expect it all to be self-evident after learning the basics and using it to create a simple game. You think of pretty much everything as an Object and use basic logic and common sense from there. The design isn't what's difficult; it's the implementation.