Re: [Flashcoders] Best way to learn OO Analysis and Design with ActionScript (James Marsden)

2006-08-19 Thread Adrian Park

Joe, that sounds like a really useful approach. I imaging it gets you on the
right track with distinct objects and duties. The way I understand MVC, I'd
guess that you'd use MVC to implement the *nouns* (if it seemed
appropriate). i.e. Pacman might have a model to store his state (e.g.
location, powerups e.t.c.) and a view to manage his visual display. In this
case, the verbs would be divided between the model and view depending on
whether they modified state or visual appearence.

I'm going to try this out on my next project :)

A.

On 8/18/06, Joe Cutting [EMAIL PROTECTED] wrote:


Back when I was at college studying CS we were taught that the way to
decide which objects to use was
to write a simple description of what your program should do. Then go
through the description and find all the nouns
- these are your main objects. You can also go through and find all
the verbs, these are the some of the functions of those objects.
This still seems to work pretty well.

So, if your program description is-
Pacman moves through a maze eating dots. Ghosts chase pacman. Every
time pacman eats a dot the score increases
Then your main objects are

Pacman
Maze
Dot
Ghost
Score

Some of your main functions are
Pacman - move
Pacman - eat
Ghost - chase
Score - increase

Unfortunately I think this was before MVC became popular so I'm a
beginner on that one too. My experience is that it
works really well for editing data type programs like
wordprocessors etc but its either more tricky/not worth the while for
some presentation type applications.

Cheers

Joe


Joe Cutting
Computer exhibits and installations
www.joecutting.com
96 Heslington Road, York, YO10 5BL
01904 627428
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Best way to learn OO Analysis and Design with ActionScript (James Marsden)

2006-08-18 Thread Joe Cutting
Back when I was at college studying CS we were taught that the way to 
decide which objects to use was
to write a simple description of what your program should do. Then go 
through the description and find all the nouns
- these are your main objects. You can also go through and find all 
the verbs, these are the some of the functions of those objects.

This still seems to work pretty well.

So, if your program description is-
Pacman moves through a maze eating dots. Ghosts chase pacman. Every 
time pacman eats a dot the score increases

Then your main objects are

Pacman
Maze
Dot
Ghost
Score

Some of your main functions are
Pacman - move
Pacman - eat
Ghost - chase
Score - increase

Unfortunately I think this was before MVC became popular so I'm a 
beginner on that one too. My experience is that it
works really well for editing data type programs like 
wordprocessors etc but its either more tricky/not worth the while for

some presentation type applications.

Cheers

Joe


Joe Cutting
Computer exhibits and installations
www.joecutting.com
96 Heslington Road, York, YO10 5BL
01904 627428
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com