Doing some Lua game dev and it’s quite refreshing to use such a simple language compared to Ruby’s richness, and thinking about code structure without Rails guiding/forcing the way.

A Haiku about AirPods not seamlessly connecting to my Mac today:

Bing bong go AirPods.
And yet they will not connect.
Bing bong go AirPods…

For full effect repeat poem several times at the start of a meeting then give up.

While that one cures, I added the trench run and got capacitive touch working in the studs.

Show thread

I've made an alternative frontend to Medium:

scribe.rip

If you, like me, are occasionally forced to read articles on medium.com, now you can read them on Scribe instead! Feedback welcome.

#OpenSource #crystallang

trying the same thing over and over but expecting different results is the definition of flaky test suite

Watching Eurovision makes me wish there was something like Dolby for synchronised lighting effects. An OSC stream basically

In the mood to code something but not in the mood for dealing with code. A dilemma

Global state is bad. But if you call it a registry it’s fine 👍🏻

TLDR I’m looping through a list of all potential association names, using the Reflection API to find one that actually exists, then using private information to get the type of the association, finally creating it the appropriate method.

With comments noting the dodgy bit.

Show thread

ActiveRecord has a public Reflection API that lets you give you info about scopes/associations, but every class returned is private. One of the few allowed methods is `name` that just gives back what you put in 😡

Outlet.reflect_on_association(:instructors).name == :instructors

Show thread
Show older
Ruby.social

A Mastodon instance for Rubyists & friends