Skip to content

Transform this into an extendable template.  #13

@firstprayer

Description

@firstprayer

From my experience, extending this driver is not difficult. If I need more data, all I need to do is to define more fields in the message, add some very trivial code, and it works. So, reading more data is not a problem.

But, what if someone what less data? Transform more data clearly make it less efficient, under the case where only very simple data is needed.

There're two ways, perhaps:

  1. Make the module configurable. That is, the user can configure what input he needs
  2. Or, in a simpler way, just provide the driver as a template/skeleton, which only provides the simplest data. At the mean time, the actual user of the driver can easily add new data input by making very few modifications.

I actually recommend the latter approach. The basic idea is like https://github.com/angular/angular-seed

Let me know the your comments on this idea :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions