Open
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...?)
|
jmaddox19
reviewed
Oct 20, 2020
Comment on lines
+20
to
+21
| response = HTTParty.get(url, query: query_items) | ||
| return response |
There was a problem hiding this comment.
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.