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

v0.2 #2

Open
2 of 4 tasks
seanabrahams opened this issue Aug 9, 2016 · 5 comments
Open
2 of 4 tasks

v0.2 #2

seanabrahams opened this issue Aug 9, 2016 · 5 comments

Comments

@seanabrahams
Copy link
Owner

seanabrahams commented Aug 9, 2016

  • Create Tmdb.Base to be used by modules
  • Some module names are singular (Tmdb.Tv.Season) and some are plural (Tmdb.Movies). We should make them all singular or all plural.
  • Should we match the API and create a Tmdb.Search module instead of having Tmdb.Movies.search/2? Yes, I think so.
  • Tmdb.Tv.account_states/2 is incorrect as it doesn't include the parameter name for session_id, only the value.
@agustif
Copy link
Contributor

agustif commented Aug 21, 2016

[1] Nice! I don't understand macros yet but so simple and so much lines saved!!

[2] TV is a hard one to pluralize, Series might come handy for a differentiation on a -one shot- vs a chapter/episode format, not sure whats best though. The api main endpoints are all in singular so maybe we stick on singular for all (maybe being flexible in somtehing like Tmdb.Movie.Search being compatible with Tmdb.Keyword.Movies (I mean using plural only when you call an associated resource (Movies by Keyword) to another resource in singular, (Tmdb.Movie.Keywords)

Maybe we can create some kind of rule of thumb in order to make sense of which is the main resource which you can scope by using singular, and leaving plural for the other, Idk.

[3] In that case, do you want me to try a shoot at it? I actually started with a search endpoint on my initial PR but ended up discarding it in order to try and stay focused on one task (Already too many endpoints for a single PR maybe) But would like to try the effort.

I have thought to, in order to have available both Tmdb.Search.movies and Tmdb.Movie.search maybe we could youse alias/import in order to achieve that without adding too much extra code. Maybe not worth it Idk, I think it's just nice to have aliases for workflow in iex when I use tab completion to try and break stuff!

@agustif
Copy link
Contributor

agustif commented Sep 3, 2016

Shows instead of TV could be a good plural naming, seasons makes sense too.

I don't know if we should change People for Persons or something like that in order to make the plural more obvious y'know

Search is a hard one to make sense in plural, but maybe we should end up doing something for both search and discover endpoints of the api and name that differently, Idk, maybe sticking as close to the API endpoints naming is whats best!

@seanabrahams
Copy link
Owner Author

I think we should stick to TMDb's naming so someone can read their documentation and use this library without having to look things up.

@agustif
Copy link
Contributor

agustif commented Jul 18, 2017

Hi Sean! How's it going, I plan to start using this in production, do you have any plans in mind? Would you like a PR on something if I may try? Thanks for all the code!

@seanabrahams
Copy link
Owner Author

seanabrahams commented Jul 18, 2017 via email

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

2 participants