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 😳):