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

Metadata Factoring #4

Open
MikeInnes opened this issue Aug 9, 2016 · 0 comments
Open

Metadata Factoring #4

MikeInnes opened this issue Aug 9, 2016 · 0 comments

Comments

@MikeInnes
Copy link
Contributor

Just leaving a note on some things we discussed earlier. Right now in the Types module there's some repetition of fields like description, tags etc. Some of these are essential data about the object and some are essentially metadata that might be useful for searching or browsing lessons. It might be useful to factor this explicitly as follows:

type Metadata
  description::String
  tags::Vector{String}
  # ...
end

type Lesson
  name::String
  meta::Metadata
  # ...
end

It might even make sense to dump the typing entirely and just have meta::Dict{Any,Any}. It may be more convenient if metadata is optional, and especially if new metadata can be added and stored without causing issues. Plus, it might be nice for descriptions and things to be markdown objects.

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