Be a Supporter!

Are packages and classes important?

  • 296 Views
  • 3 Replies
New Topic Respond to this Topic
Jigganis
Jigganis
  • Member since: Nov. 7, 2003
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Are packages and classes important? 2008-09-19 11:18:57 Reply

I'm reading this Essential ActionScript 3 book from O'Reilly, and the author seems to put a lot of emphasis into these things, at least in the first chapter. So are they really worth something? Do you professional programmers here really use them a lot?

DarkMana
DarkMana
  • Member since: Apr. 4, 2005
  • Offline.
Forum Stats
Member
Level 23
Blank Slate
Response to Are packages and classes important? 2008-09-19 11:38:09 Reply

Packages and classes allow you write code in a modular, organized, and reusable fashion.


Asus P5Q PRO, Intel E8400 @ 3.60 GHz, 4GB DDR2-1000, ATI HD4850

BBS Signature
WolfAkela
WolfAkela
  • Member since: Dec. 19, 2005
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to Are packages and classes important? 2008-09-19 11:43:58 Reply

You'll end up using them a lot. Beginning to code in Flash with OOP design in mind would greatly simplify a lot of problems.

Well of course you always have the nooby option of not using them then end up typing more than 10 times more lines code mainly due to redundancy, not to mention the horrible organization you'd have to manage and the piss poor extensibility, where you could possibly end up rewriting the whole thing if you want to modify a part.

GustTheASGuy
GustTheASGuy
  • Member since: Nov. 2, 2005
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to Are packages and classes important? 2008-09-19 11:54:30 Reply

Surely you'll see the advantages of classes further in the book, packages are pretty much just folders for classes (because there tend to be a lot of them).


BBS Signature