in reply to Organising and localising generated POD

To help you organize this project (or feel better about it), read these Class Responsibility Collaboration(crc) links, and writeup a version of these cards for your project (you can use asciio (if you got Gtk2) when you've got a version you want to share)


html version (no overlapping or closeness)

View
  • Render the Model
  • Transform coordinates
  • Controller
  • Model
Controller
  • Interpret user input
  • Distribute control
  • View
  • Model
Model
  • Maintain problem related info
  • Broadcast change notification

YAML (HoHoA), (no overlapping or closeness)

--- View: Responsibilities: - (what the class does) - Render the Model - Transform coordinates - - - Collaborations: - (related objects) - Controller - Model - - - --- Controller: Responsibilities: - (what the class does) - Interpret user input - Distribute control - - - Collaborations: - (related objects) - View - Model - - - --- Model: Responsibilities: - (what the class does) - Maintain problem related info - Broadcast change notification - Collaborations: - (related objects) - - -

App::asciio text diagram, both overlapping and closeness

.----------------------------------------. | View | .-------------------------.--------------. | - Render the Model | - Controller | | - Transform coordinates | - Model | | | | | | .--------------------------------------- +-. | | | Controller + | '-------------------------'--.-------------------------.------------- +-. | - Interpret user input. | - View + | | - Distribute control | - Model + | | | + | | | + | | | + | '-------------------------'------------- +-' .----------------------------------------. | Model | .-------------------------.--------------. | - Maintain problem | | | realted info. | | | - Broadcast change | | | notification. | | | | | '-------------------------'--------------' Note that the cards are placed such that View and Controller are overlapping (implying close collaboration) and placed above Model (implying supervision.)

Replies are listed 'Best First'.
Re^2: Organising and localising generated POD (Class Responsibility Collaboration(crc))
by duncs (Beadle) on Jun 14, 2014 at 07:15 UTC

    Thanks, thats a good idea - not heard of that before but I can see how it works.

    I'll try it out and see how I get on.

    Duncs