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" |
|
|
||
| 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.
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.
| 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