Jared Moody reposted
Jared Moody
Jared Moody
@jaredmoody.com
I like Ruby, roasting coffee, Oxford commas, and dad jokes.
413 followers69 following105 posts
Jared Moody reposted
Good piece from Blazer's Edge arguing that pro sports teams tend to capture most of the revenue they generate in most places, and cities often get more from their venues after they leave
Jared Moody reposted
Alongside the Ruby 4.0 release last week, I published charm-ruby over Christmas, bringing @charm.land's excellent terminal UI libraries to Ruby. A full TUI framework, reusable components, styled output, forms, markdown rendering, spinners, charts, and a lot more! Demos below ⬇️
Jared Moody reposted
Jared Moody reposted
Jared Moody reposted
I'm sad I can't make it to the @xoruby.com events that @jremsikjr.bsky.social is putting on, so what if you went instead 😄 September 6th Chicago • 13th Atlanta • 20th New Orleans October 11th, Portland • 18th San Diego • 25th Austin Tickets xoruby.com/events
Jared Moody reposted
Hey PNW Ruby Friends! We have a single day conference coming to Portland on Oct 11! I’m so excited for a regional Ruby conference in my neck of the woods. Come spend the day with me and a bunch of other #RubyFriends! www.xoruby.com/event/portla...
Jared Moody reposted
@andrewm.codes @excid3.com every time you pronounce mise “mize”, a new bug manifests on ruby core
Jared Moody reposted
OK the #mapquest Name Your Own Gulf stunt is fantastic 😂 gulfof.mapquest.com
So, to deal with this, I used some private APIs (danger!) to read out and de-serialize the Cache::Entry objects (with their versions intact!), not the actual values that Rails.cache.read / read_multi returns. Then I wrote those entries out just like the Cache Store does under the hood.
The unintended result of this is that the cache for the user does not bust when the AR object is updated because Rails has no version to compare with. Rails.cache.read [@user, 'greeting'] will return the stale value even after @user is updated.
Then I did 1k reads or writes and summed the times from Benchmark.ms. Not scientific but enough to get an idea. Writes were about 2x slower, which sounds bad, but we're talking like 5ms vs 2.5ms, not enough to matter.
@excid3.com re: home assistant and garage doors, check out ratcloud.llc, very happy with mine.