Today’s exercise was a little tricky. It had you adding things up by multiples. Somehow the Range Enumeration function is faster than counting by twos (or similar). Of course your count was off if you got exactly to the max so I added an ugly fudge factor if the multiple divided evenly into the max. I needed to keep an eye out for zeros too. Ten more exercises to the half way mark.

Today’s todo application changes:

  • Added pagination breaking the API a bit in the process.
  • Fixed the tests I broke for that
  • Added the react-paginate component to the front end. Required a bunch of CSS I stole from the codepen.io example to make it look nice.
  • I tried redirecting back to login/signup on error but got nowhere. Turns out the app is doing some of that. I don’t want to break it so I may skip it.
  • Add/Edit will auto-navigate back to the todo list on post/put

I think that just leaves local deployment. Which I may just do on my own. So should I start something new tomorrow? Maybe I need a palate cleanser for a day or two. I might make change to-dos into a grid. I don’t much like the cards. I should change the pagination page size to something reasonable too.