Old 07-02-2006, 00:10   #1 (permalink)
MDiddy
Half Man/Half Amazing
 
MDiddy's Avatar
 
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?
  Reply With Quote
Old 07-02-2006, 04:12   #2 (permalink)
cam
vague™
 
cam's Avatar
 
Join Date: Mar 2004
Location: Glasgow
Posts: 5,513
Only just learning actionscript myself, but finding Moock's EA2 very handy

http://moock.org/eas2/
  Reply With Quote
Old 08-02-2006, 10:25   #3 (permalink)
dan
Iris Folder
 
dan's Avatar
 
Join Date: Apr 2003
Location: smokey
Posts: 2,643
Aye, Mooks EAS2 all the way.
  Reply With Quote
Old 08-02-2006, 11:43   #4 (permalink)
Luke Redpath
Barney army!
 
Luke Redpath's Avatar
 
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
  Reply With Quote
Old 08-02-2006, 11:58   #5 (permalink)
gray
i still want paying
 
gray's Avatar
 
Join Date: Oct 2003
Location: newcastle, uk
Posts: 4,713
Does the same apply to php?
  Reply With Quote
Old 08-02-2006, 12:23   #6 (permalink)
Luke Redpath
Barney army!
 
Luke Redpath's Avatar
 
Join Date: Mar 2003
Location: London
Posts: 692
Quote:
Originally Posted by gray
Does the same apply to php?

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
  Reply With Quote
Old 08-02-2006, 12:33   #7 (permalink)
gray
i still want paying
 
gray's Avatar
 
Join Date: Oct 2003
Location: newcastle, uk
Posts: 4,713
cheers luke
  Reply With Quote
Old 08-02-2006, 13:10   #8 (permalink)
mx
fucksocks™
 
mx's Avatar
 
Join Date: Jun 2005
Location: in the boosh
Posts: 1,622
So much to learn...
  Reply With Quote
Old 09-02-2006, 08:47   #9 (permalink)
stickmus
hmmm...
 
stickmus's Avatar
 
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
  Reply With Quote
Old 09-02-2006, 10:36   #10 (permalink)
Luke Redpath
Barney army!
 
Luke Redpath's Avatar
 
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
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8