-
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
Earth - Ringo & Jasmine #17
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!! As I mentioned in an inline comment, an area for growth is to run the program manually to test it out as well, in addition to running the tests. Unless the workspace you were experimenting with actually had all users with all of those optional fields defined, it should fail to run in its current state. That's what happened to me when I ran it against the C14 workspace. It is possible to have fairly thorough tests that all pass and still see the product break when you try to run it end-to-end. But again, great work! The program all works together as expected and the code is very readable! Code Style Bonus AwardsWas the code particularly impressive in code style for any of these reasons (or more...?)
|
puts "Please select user or channel, first." | ||
end | ||
|
||
when "customize bot" |
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.
Fun addition!
|
||
def initialize(slack_id, username, real_name, status_text, status_emoji) | ||
|
||
raise SlackApiError if [slack_id, username, real_name, status_text, status_emoji].include? nil |
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.
When I try to actually run the program by calling the main
method in slack.rb
, the program fails because not all users have all of these attributes. The only one that all users have is slack_id
.
In the midst of TDD, it's important to still manually run your code to make sure it all works together for the user, rather than relying only on the tests.
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.
raise SlackApiError if [slack_id, username, real_name, status_text, status_emoji].include? nil | |
raise SlackApiError if slack_id.nil? |
Assignment Submission: Slack CLI
Congratulations! You're submitting your assignment. Please reflect on the assignment with these questions.
Reflection