The good news: I had lots of fun on stream with @marcoroth yesterday.
The bad news: We will be serving life sentences in Ruby jail if the Ruby police ever catch us.
=> More informations about this toot | More toots from jardo@ruby.social
Yesterday’s #AdventOfCode puzzle wasn’t especially tricky, so we took it as an opportunity to play with refinements, a feature of Ruby that are like monkey-patches, but more confusing. You should definitely use them in production.
=> More informations about this toot | More toots from jardo@ruby.social
I have never used refinements before and likely still won’t ever use them in production code, but it was a great stream. We overrode operators. We dynamically defined methods. We changed what the bitwise OR operator does for integers. Totally normal stuff.
=> More informations about this toot | More toots from jardo@ruby.social
You can find the recording of the stream and a breakdown of our Ruby transgressions over on my blog. https://jardo.dev/advent-of-criminally-bad-ruby-code
=> More informations about this toot | More toots from jardo@ruby.social
The end result was some code that I don’t really even think is spoiler for the puzzle, because it’s so incomprehensible. Surely you can’t tell me what this does?
=> More informations about this toot | More toots from jardo@ruby.social
I’ll be streaming again today at about 2:30pm Pacific and method_missing is on the menu. Come join in the fun! https://twitch.tv/jardonamron
=> More informations about this toot | More toots from jardo@ruby.social This content has been proxied by September (ba2dc).Proxy Information
text/gemini