#144HoursOfCode D31

Submitted over 4 years ago

7/9/18 (1:20-1:55pm, 8:50-9:53pm)

* Starting reading POODR
* Worked on refactoring the watch_chat_waits.rb file in the Pegacorn Project, but didn't finish
* Added documentation in the form of a README to Pegacorn Project

POODR is a book that I've had and have wanted to read for months, but my latest refactoring adventures and desire to get familiar with foundational OO principles so that I can use them and talk about them in interviews has inspired me to take the plunge. I read this in the Lyft on my way to the doctor's office this morning, and can't wait for the wisdom I'm sure it will impart.

As for refactoring the watch_chat_waits.rb file, I've found it trickier than the other two in the project because it involves code blocks that throw errors when they aren't broken up in the right way. For example, I tried to pull a chunk out of a block that retries code 3 times, but then Ruby complained that redo was in a function that didn't have anything redoable. Fair, but this means that the refactor will require some craftiness on my part. My issues with that block are compounded by the fact that this code uses EventMachine and WSS which add their own blocks to the mix. I think I'm going to have to break out a whiteboard to help me think through this one.

Adding documentation to my code felt really good! I think this will be an important skill to demonstrate not only because it's important for devs to be good at period, but is a way that I can show that I can add value to a team even if I'm not a virtuoso coder (yet). I'm sure it could use some improvements, but I feel good about it for a first draft.

Here are my commits for the 10th (I think it's clear that I haven't figured out a way to preview my markdown before committing 😳):
* https://github.com/twoesplease/pegacorn_project/commit/284d705ddf476a0df80c58a485d74eafd941435b
* https://github.com/twoesplease/pegacorn_project/commit/6ae1721899a887ae5ad8adeea3befe7712a0974e
* https://github.com/twoesplease/pegacorn_project/commit/1c3b57036b64882fb98914aff449ca80d3867137
* https://github.com/twoesplease/pegacorn_project/commit/d830d04b9c50f3d7a5762c469c1c34ce60ab47cd
* https://github.com/twoesplease/pegacorn_project/commit/ba9f8cc799db59cd88f4d46bb9f0da9629c2f714
* https://github.com/twoesplease/pegacorn_project/commit/15389152a6ed047aa8d8d2c6e0ea541539128f4c
* https://github.com/twoesplease/pegacorn_project/commit/4a0d22b4c9a1d446e39e7926d53c5b71d0386f7b


Add a comment: