Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split logic for specific node into a strategy class, rather than subclasses #29

Open
sderickson opened this issue May 28, 2014 · 0 comments
Milestone

Comments

@sderickson
Copy link
Contributor

Each Treema node represents one property in the json data. There are some things that are universal about a node, like how it handles navigation or that it has a working schema, or its state and path. There's also logic mixed in that is to be overridden by subclasses, like how to edit or render the value. Possibly split this logic into the generic Treema node class and the Treema strategy class. This will mainly be good for cases when a node changes its working schema; you don't have to swap in the Treema node object instance if you can just swap in a strategy object. Consider having the strategy object be a singleton that gets passed in all relevant state, and leaving the generic node class to maintain state.

@sderickson sderickson added this to the Version 0.2 milestone May 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant