| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Half Man/Half Amazing
Join Date: Apr 2004
Location: A small town called Freshoffachumpsass.
Posts: 35
|
Using Classes & Asses
Sorry the 'ass' comment was just the sizzle to get you to click. I'm looking at getting into taking a more OOP approach to m coding by using classes and such, but i need a good reference book/site/whatever ot help me get my feet wet. One project I'll probably need to take on is a video jukebox-style app. I''ve done something like it in the past, but it was an utter whore to manage. Anyone with OOP Flash experience care to shed some light? |
|
|
|
|
|
#4 (permalink) |
|
Barney army!
Join Date: Mar 2003
Location: London
Posts: 692
|
It's well worth getting a good grounding in OOP in general and most books that cover OOP will likely be Java or C# based. Having had a brief look at some ActionScript code, Java shouldn't be too cryptic to you so look here: http://java.sun.com/docs/books/tutorial/java/concepts/ A few tips and things to remember: * one of the core principles of OOP is encapsulation. A good article that highlights this is here - ask, don't tell * favour composition over inheritance - see here * keep classes small and specific - they should only be focussed on one task. Avoid huge, god classes that try to do everything. Try and keep your code loosely coupled Once you start to get to grips with the basics, take a look into design patterns. Obviously, don't run before you can walk, but OOP design patterns can be very useful (but don't get obssesed with them...i.e., don't sit around asking "which pattern should I use for this?" - they tend to reveal themselves). Finally, look into unit testing and even better, test-driven development. A quick google reveals that an ActionScript unit testing framework called AS2Unit. Info on test first/driven development. Luke Redpath .::. Software Engineer .::. Reevoo - Real Reviews From Real Customers
|
|
|
|
#6 (permalink) | |
|
Barney army!
Join Date: Mar 2003
Location: London
Posts: 692
|
Quote:
Yes. But I recommend SimpleTest over PHPUnit for testing. Here's a PHP OOP book. There is some specific PHP/patterns stuff out there too. Google it and check out the SitePoint Advanced PHP forum. Luke Redpath .::. Software Engineer .::. Reevoo - Real Reviews From Real Customers
|
|
|
|
|
#9 (permalink) |
|
hmmm...
Join Date: Jan 2004
Location: Yorkuk
Posts: 2,127
|
I bookmarked this ages ago, after meaning to learn oop. Never really read it all properly, but looked to cover the basics: http://www.informit.com/articles/art...p?p=24607&rl=1 |
|
|
|
#10 (permalink) |
|
Barney army!
Join Date: Mar 2003
Location: London
Posts: 692
|
A bit out of date mind you, if you want to get into OOP PHP I really suggest you look at PHP 5, or even a fully OO language like Ruby (where everything is an object). Luke Redpath .::. Software Engineer .::. Reevoo - Real Reviews From Real Customers
|
|
![]() |