Kasper Timm Hansen
kaspth.com
Kasper Timm Hansen
@kaspth.com
Rails core alumni, gone Rails consulting on kaspth.com. You'll find my services, guestbook, talks, YouTube, posts, and newsletter there.

I also do deep-dives into the Rails source https://lu.ma/kaspth and riffing https://github.com/kaspth/riffing-on-rails
hell yeah!
November 10, 2025 at 3:16 PM
Yeah, it's pretty difficult 😅

That sounds great! Both the discussions and issues are open on the Oaken repo.
October 26, 2025 at 10:06 AM
This sounds very similar to Async + Sync in a way, like what are the boundaries where we can scatter, and then where are the boundaries where we depend on earlier results so we gather?

I don't know, I'm just spitballing.
October 25, 2025 at 4:36 PM
Yeah that's also interesting. insert_all just ends up feeling so messy in a way 😅

I wonder if there's a way to do something like:

insert_all do
create(:user)
create(:user)
end

where the two create calls are bundled together into one insert_all call? hm
October 25, 2025 at 4:36 PM
Ah yeah, I hear you on the messy building, I don't know if there's a way around that 😅
October 25, 2025 at 4:30 PM
Oh that's awesome! Let me know if I can help in any way 😄🫡
October 24, 2025 at 10:22 AM
Oh interesting! I could see Oaken potentially being easier to generate than FactoryBot because it'd need fewer tokens per test case, so there's less to get wrong sorta.
October 24, 2025 at 10:17 AM
I'd love to know more about the optimizing you've done, maybe there's lessons we could broaden to something for the community in Oaken.
October 24, 2025 at 10:13 AM
I'd love to!

Another design goal for me has been demo modes in production, so marketing could do demos and take screenshots (and I have some thoughts on automating those too)
October 24, 2025 at 10:11 AM
Basically I'm piggybacking off of Rails' fixtures wrapping tests in transactions here github.com/kaspth/oaken...

So we can seed once on boot and then rollback after each test.
oaken/lib/oaken/test_setup.rb at main · kaspth/oaken
Oaken upgrades your development seeds, lets you reuse them in tests & blends the best of fixtures & factories into one cohesive whole. - kaspth/oaken
github.com
October 24, 2025 at 10:10 AM
It's tough to communicate the intended naunce in tweet size 😅
October 24, 2025 at 10:07 AM
The basic intent is that you can run Oaken.seed "cases/performance" in staging, then we'd match db/seeds/{,staging}/cases/performance/**/*.rb and load each matching file.

Then you can structure within the perf directory as nested as you want to.
October 24, 2025 at 10:07 AM
Yeah, we basically have the pieces for this in Oaken. And being able to execute data scripts in staging/prod has been part of its design from the get-go. I just haven't finished it yet, because I've been a little wary about it 😅
October 24, 2025 at 10:07 AM
Yeah it's pretty radical to have no words 😄
October 23, 2025 at 10:50 PM
Didn't realize I could actually try out the app now, really cool!

The tracks worked & I like the vertical bars.

Also: I think I might have broken it because don't show up anymore and can't play. In a new private browser window they're back and playback works though.
October 23, 2025 at 10:38 PM
Feel free to comment your thoughts on the PR by the way 👋
October 23, 2025 at 10:09 PM
Yeah exactly
October 23, 2025 at 7:35 PM