#144HoursOfCode D28

Submitted over 2 years ago

(7:15pm - 10:20pm)

Progress
* Completed first refactor on countgoodratings file & asked for feedback on the refactor
* Added pagination to posts on personal blog

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

Commits
Here are today's commits:
* https://github.com/twoesplease/pegacorn_project/commit/31ead9d87c251f444d97e7437d2ebf0da1b8aecb
* https://github.com/twoesplease/personal_site_blog/commit/2db1e210a5f4abcc8a8e778c50ea9912b3b4dc67
* https://github.com/twoesplease/personal_site_blog/commit/cb6e3ea23bac3b38ddb5c9eaf0673af22f490174

0 Comments

Add a comment: