Skip to content

Conversation

@saintmedusa
Copy link

Assignment Submission: Slack CLI

Congratulations! You're submitting your assignment. Please reflect on the assignment with these questions.

Reflection

Question Answer
How did you go about exploring the Slack API? Did you learn anything that would be useful for your next project involving an API? I used Slack Api's tester section. I learned that post and get are different enough to require completely different structures for implementation.
Give a short summary of the request/response cycle. Where does your program fit into that scheme? A user (my program) sends a request to a server (slack API) . My request is for information from the server, and the response includes a message telling me how my request was recieved ("ok = true
How does your program check for and handle errors when using the Slack API? I created a class of error called API_error that reports the API error message back to the user if the get or post request didn't go through.
How did the design and organization of your project change over time? So much. So goddamn much. I learned a lot about the super keyword and a lot more nuance of inheritance as it pertains to class and instance and private methods. So, the structure of Recipient (parent) and User/Channel (children) changed a lot - where certain methods were instantiated (right word?) changed. What was a class or instance method changed. Some things migrated between Workspace and Recipient quite a bit. My overall class structure pretty muched stayed the same though.
Did you use any of the inheritance idioms we've talked about in class? How? Inheritance. Mentioned above.
How does VCR aid in testing a program that uses an API? Not overloading the api serivce you are using with requests everytime you run tests.

saintmedusa and others added 27 commits March 12, 2020 21:07
…es to refer to Workspace: test_helper.rb and slack.rb. slack.rb also has some code testing out connection to slack api - no tests written yet.
…for far in creating a version of .getlist with no parameters. Wrote passing tests.
…lect channel, details. Added ap to lib_helper.rb
… have one responsibilty - cleaning up use of 'super' to be more understandable and remove a complicated bug. Created .make_query in parent and children to do this.
… + CHannel. This affects #details- which now returns a hash instead of an array.
better encapsulation
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.

1 participant