-
Notifications
You must be signed in to change notification settings - Fork 31
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
Alice/Ting-Yi - SlackCli #11
base: master
Are you sure you want to change the base?
Conversation
Slack CLIMajor Learning Goals/Code Review
Functional Requirements
Overall Feedback
Additional FeedbackGreat work!! Y'all made a whole program that interacts with Slack in real time from the command terminal!! Code Style Bonus AwardsWas the code particularly impressive in code style for any of these reasons (or more...?)
|
response = HTTParty.get(url, query: query_items) | ||
return response |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great error handling on line 42! This could use something similar here
end | ||
|
||
# Define how channel details will be displayed | ||
def details |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this method should be defined for all children of Recipient, it is appropriate for there to be a template method called details
in the Recipient class.
Assignment Submission: Slack CLI
Congratulations! You're submitting your assignment. Please reflect on the assignment with these questions.
Reflection
Give a short summary of the request/response cycle. Where does your program fit into that scheme? | When we need some information from the Server, our CLI code is a client and we use API with a Key and URL to retrieve the information from server. Our program fit in the scheme when we make a request go get user and channels data from the API and we get the response we ask for.
How does your program check for and handle errors when using the Slack API? | Our program check if the response code is correct and the parsed response is ok, and check if our token is valid before loading data, if not we raise a error.
How did the design and organization of your project change over time? | At the beginning was a little confused, but after talking and going through the questions it get clarified and we realize we had an inheritance between the recipient class, channels and users, and how we could organize the methods properly.
Did you use any of the inheritance idioms we've talked about in class? How? | Yes, we create a class Recipient as our abstract class, and we created the methods in recipient class as our template methods and applied them in our classes User and Channels.
How does VCR aid in testing a program that uses an API? | VCR aid is really helpful and saves us from being banned by our API token.