Login
Roast topics
Find topics
Find it!
From:
Boring Rails: Skip the bullshit and ship fast |
(Uncensored)
subscribe
Never mix up greater/less than when comparing dates again
https://boringrails.com/tips/rails-date-before-after
links
backlinks
Tagged with:
ruby
rails
Roast topics
Find topics
Roast it!
When it comes to compare dates, for some reason my brain really struggles. I mix up < and >= all the time and end up flipping them.