Skip to content

Organizing and Naming Serializers/Deserializers #9

@smizell

Description

@smizell

I'm currently on the tail end of having a usable version of the hypermedia resource library for Python. Once it's ready, I want to work on a couple of serializer/deserializer objects. I have several questions around this.

  1. What should these be called? I have called them adapters recently, and translators in the past. I could see a more common name like plugins as well. Does anyone have any thoughts on a simple name to call these?
  2. What should we call the methods for adding these to the hypermedia resource object? I've called it register in the past. I could see other names like add or load being used. Any thoughts on a name here?
  3. What is the canonical interface to these adapters/plugins/etc.? In the past, I've had a media type name (e.g. application/hal+json), a parser (to deserialize), and a builder (to serialize). Better names here? Anything to add?
  4. Should these adapters/plugins/etc. be referenced via the registered media type name? Or a shorter, agreed-upon name? In other words, application/hal+json vs. just hal+json?
  5. How should these adapters/plugins/etc. be organized? Should they be within the main hypermedia resource repository for each language? Should they have their own repositories?
  6. Related to the last question, should the main hypermedia resource object register all of the major adapters/plugins/etc. by default? Or should we rely on the user of the library to register them?

Thanks!

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