Submitted over 2 years ago
(7:15pm - 10:20pm)
* Completed first refactor on countgoodratings file & asked for feedback on the refactor
* Added pagination to posts on personal blog
Today I felt like I needed to drop everything coding-wise and go out and read a ton of blog posts about object-oriented design as well as POODR. I definitely did read some blog posts and watched this helpful video which a pal on the CodeNewbies Slack mentioned would be relevant to my refactoring, but I stuck to it and continued coding too. I implemented a class around the code in my countgoodratings file and then called my 'big three' methods on it - I'm curious to hear what my reviewers in the CodeNewbies Slack will have to say about that. I'm so so thankful for their help nd suggestions so far.
I also finished a feature addition that I started on yesterday when I saw that this blog is getting quite a few posts - adding pagination to them! I ran into an unexpected error saying that I needed to define a
total_pages method, so I had to do some researching about how to fix that and ended up needing to add some code to my Posts controller to fix that. I also had to fix the styling for the pagination links so that they didn't look too out of sorts. Finally, once I got the pagination pushed up to my blog I noticed that my posts were all out of order, so I had to make another quick change to order the posts properly once again.
All in all, a busy day that's making me feel mostly inspired to learn more and a little bit behind because there's so much that I want to already know.
Here are today's commits: