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

Tiger level challenge #24

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

noahpatterson
Copy link

I replaced the api_key with mine from a .gitignore file, FYI. Also, 1 question, in movie_json.rb #movie_search_by_title is complicated. Is this best fixed with more, simpler, methods? Thanks!

class Api

APIKEY="4t6456xa33z8qhcqyuqgnkjh"
APIKEY=API_KEY
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the moving the key into a git-ignored file. But, you can just have that set your variable... in api_key.rb have it set APIKEY directly. This line ends up looking odd (and future-you won't remember what this is)

@jwo
Copy link
Member

jwo commented Dec 22, 2013

Great job on the specs! And I really love the thought of security with the gitignore. Let me know if you have any questions on my comments :)

@noahpatterson
Copy link
Author

Tried to fix the things you suggested, let me know if this looks better! Thanks

year: struct.year,
score: struct.ratings["critics_score"]
)
struct.id.nil? ? NullObject.new : store_movie(struct)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!!

Only comment: rather than "store_movie", recommend "build_movie". Store tends to imply persistence.

@jwo
Copy link
Member

jwo commented Dec 26, 2013

Looks greast! Significant improvement in readability. yay!

@jwo
Copy link
Member

jwo commented Dec 26, 2013

👍 🎉

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

Successfully merging this pull request may close these issues.

2 participants