conductor icon indicating copy to clipboard operation
conductor copied to clipboard

Expose Models so they can be "inherited"

Open micahr opened this issue 9 years ago • 2 comments

In order to inherit the methods / properties on a Model, one has to "create" one then inherit from it's prototype. This seems inefficient and unnecessary. Perhaps a separate module for models would enable inheritance as well as contribution back to the set of models.

micahr avatar Oct 12 '15 23:10 micahr

@DonutEspresso - What do you think about moving models into their own module? Perhaps: restify-conductor-models?

micahr avatar Dec 09 '15 01:12 micahr

Sure, I imagine that will add some flexibility to the design. So long as the public interface for all models is pretty clear (e.g., minimum number of methods that need to be implemented to be considered a valid model).

DonutEspresso avatar Dec 09 '15 06:12 DonutEspresso