ManiacalRobot
Posts Photography Canvas About

Ruby Tip: Speeding up Ranges

code, performance, ruby Published Oct 2013 by Phil Balchin

using Range#cover? instead of Range#include? for Dates and Time Ranges

About the Author

Phil Balchin is a full-time software developer at Zendesk, previously at Heroku/Salesforce, and Kyan, as well as a part-time photographer living in Guildford, Surrey, UK.

facebook.com/phil.balchin | instagram.com/maniacalrobot | last.fm/users/maniacalrobot | picfair.com/maniacalrobot | maniacalrobot.tumblr.com | twitter.com/maniacalrobot

Related Posts

2013

  • Ruby Tip: Speeding up Ranges code, performance, ruby

2014

  • Swift style conditionals in Ruby swift, ruby, programming

2012

  • Setting up a Ruby/Rails Environment in Mountain Lion osx-mountain-lion, ruby

Recent Posts

2025

  • Building my own window manager with Raycast engineering, productivity
  • Leveling up productivity productivity
  • Release: Tmux Devcontainers plugin tmux-devcontainers
  • When performance isn’t obvious
  • From Tmux+Vim to VSCode … and back again
© 2011–2025 Philip Balchin | About | Sitemap | Colophon | principles | Cookie Policy | Tags | RSS | π