I want to dig deeper in Model :)

katopz's Avatar

katopz

30 Jan, 2011 03:49 AM

i got robotlegs/signals/modular working so far so good now (thx, guys!)
my next challenge is how can i manage data in Model like a pro? eg. sorting/filters,insert/update/delete,cached
that should include flow/diagram/example for manage data across module would be nice :D

i saw this http://www.sencha.com/blog/2011/01/21/countdown-to-ext-js-4-data-pa...
provide some structure for how to separate things as "Store", but i feel like i just can't complete he loop yet

any best practice link/book/recommend/must read is welcome! i feeling lucky today :D

  1. 1 Posted by george.dascalu on 30 Jan, 2011 11:24 AM

    george.dascalu's Avatar

    Hi,

    A good way to use model for general applications is separating in this way:

    vo - Value Objects: like PersonVo (name, age, favorite food, favorite sex position);
    signals - where you store all your signals;
    enums - for constants and application settings/proprietes;
    collections - for list sources, like an ArrayCollection of webcams from Camera.names, that will be used in a list component.

    locators - i use locators for each of this model types, like VoLocator, SignalsLocator, and i insert them into the main ModelLocator, instead of instertign all the model classes in it.

    I hope it helps,
    Have a good day :),
    Geo.

  2. 2 Posted by Stray on 30 Jan, 2011 11:52 AM

    Stray's Avatar

    Hi Geo,

    what's the purpose of the ModelLocator / VoLocator etc?

    I'd imagine I'd use this approach if I wasn't also using automated DI, but I'm not sure what the benefits are with robotlegs there to do the wiring.

    Can you say a little more?

    Thanks,

    Stray

  3. Stray closed this discussion on 29 Apr, 2011 06:17 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac