Stephen Margheim
banner
fractaledmind.bsky.social
Stephen Margheim
@fractaledmind.bsky.social
Reposted by Stephen Margheim
Morphlex now has a new algorithm that produces extremely optimal DOM morphs for inserts, removals and sorts. github.com/yippee-fun/m...
GitHub - yippee-fun/morphlex: Optimal DOM morphing, written in TypeScript.
Optimal DOM morphing, written in TypeScript. Contribute to yippee-fun/morphlex development by creating an account on GitHub.
github.com
November 1, 2025 at 11:34 AM
This post from @honeybadger.io is about runtime types, it just doesn’t know it! It does a good job of demonstrating the simplicity and power of Ruby’s === interface, and a runtime type is simply “an object that responds to ===.”

www.honeybadger.io/blog/level-...
Level-up `rescue` with dynamic exception matchers
When you use a rescue clause in Ruby, you can specify what kinds of exceptions you want to rescue. But what if you want to rescue exceptions by severity? By message? B...
www.honeybadger.io
October 24, 2025 at 4:41 PM
If you haven’t yet come across the Ruby Next project from @palkan.bsky.social and Evil Martians, do yourself a favor and check it out. Especially the require-hooks gem (github.com/ruby-next/r...), which allows you to define custom “around” callbacks for when a source file is required.
GitHub - ruby-next/require-hooks: Require Hooks provides infrastructure for intercepting require/load calls in Ruby
Require Hooks provides infrastructure for intercepting require/load calls in Ruby - ruby-next/require-hooks
github.com
October 23, 2025 at 6:48 PM
If the only or primary reason you like types in your source code is to have a richer, fancier text editing experience with more dropdowns that have more items in them, you are cosplaying being a developer.
October 23, 2025 at 1:02 PM
Joel and I have made fantastic progress on our Ruby enhancements gem that brings rich runtime type assertions into your Ruby projects and Rails apps. Joel recorded a short demo of how to add type constraints to method definitions: www.youtube.com/watch?v=G9r...
Empirical Demo
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.
www.youtube.com
October 23, 2025 at 10:24 AM
Reposted by Stephen Margheim
I recorded a quick demo of my latest project, Empirical, a pre-processor for Ruby that builds on Literal’s runtime type system. youtu.be/G9rxcepewas
Empirical Demo
YouTube video by Joel Drapper
youtu.be
October 23, 2025 at 9:53 AM
I’m preparing a talk, and I’d love to get a clearer picture of the wider community’s conception of what a “type” is. What definition would you give? What is the primary purpose of defining and using types? What constitutes a “type system”?

I want to hear from you.
October 22, 2025 at 10:14 PM
This a great encapsulation of how Joel and I pursue the most beautiful, ergonomic, productive DX we can imagine for the problems we tackle. In this case, we finally cracked the nut on adding typing to method signatures in a way that feels like native Ruby.
I wrote about the designing the perfect type signature syntax in Ruby.
The journey to the perfect type signature in Ruby
joel.drapper.me
October 21, 2025 at 1:39 PM
Joel and I have recently focused on our runtime typing approach for Ruby. Last week, we finally cracked the nut on adding types to method signatures in a way that feels beautiful and native to Ruby. Joel walks thru our thought process and aesthetics: joel.drapper.me/p/ruby-type...
The journey to the perfect type signature in Ruby
joel.drapper.me
October 21, 2025 at 1:38 PM
2 kinds of 🐞:

Bug of Omission: The system refuses to proceed. It raises, crashes, or otherwise stops doing anything.

Bug of Commission: The system does the wrong thing. It silently deletes records, returns incorrect results, or processes invalid inputs.
October 20, 2025 at 6:12 PM
Reposted by Stephen Margheim
Bugs of Omission and Bugs of Commission joel.drapper.me/p/omission-c...
Bugs of Omission and Bugs of Commission
joel.drapper.me
October 20, 2025 at 11:00 AM
Everyone should provide their top 10 features for Firefox to focus on: interop-rank.jakearchibald.com/
Interop Feature Ranking
Rank the web platform features you care most about
interop-rank.jakearchibald.com
October 9, 2025 at 7:28 PM
There is mich wisdom in this post: alfy.blog/2025/10/04/...

The web platform is such a marvel; it deserves developers building *with* it and not *against* it. I, for one, am going to try and do my part sharing more on how to leverage the platform to create beautiful experiences.
How Functional Programming Shaped (and Twisted) Frontend Development
alfy.blog
October 8, 2025 at 11:13 AM
Today has been a pretty amazing day…

Say hello to Emma Elanor Margheim and wish her a happy birthday!
September 23, 2025 at 10:51 AM
I love what @calebporzio.bsky.social is doing w/ Flux UI, and the new pillboxes component is 😍. I enjoy trying to build components without an ounce of JS anywhere to be found. Mine requires keyboard nav with TAB, but is otherwise basically identical: play.tailwindcss.com/qB07fPsFG9

#StylishHTML
September 17, 2025 at 9:52 PM
Yes, it is slow and steady progress, but we are genuinely building an amazing community of people and suite of tools for Ruby web developers. You should come hang out with us at discord.gg/fEMYkKQA
September 11, 2025 at 5:06 PM
Rails 8.1.beta1 ships with this PR adding min_connections to database configuration. This will benefit SQLite on Rails apps a ton, preventing write throughput saturating the connection pool and holding back reads.

github.com/rails/rails...
Maintain AR connection pools in the background by matthewd · Pull Request #54175 · rails/rails
Recruit the Reaper to do more work in keeping the connection pool healthy: retiring connections that have been idle1 for too long, or that have been open beyond a configured total maximum age crea...
github.com
September 4, 2025 at 5:55 PM
My favorite upcoming feature coming to the Rails ecosystem is ActiveRecord::Tenanted, which is an exciting new gem coming from @flavorjon.es soon.

Everyone gets a database!
September 4, 2025 at 9:20 AM
The future of Rails is very very bright, especially for those of us who have already seen the light of the power of SQLite on Rails
September 4, 2025 at 9:08 AM
In Amsterdam just in time to drop off my bags and make it to checkin. One more train ride to go. #RailsWorld
September 4, 2025 at 5:57 AM
Starting my journey to #RailsWorld well before the sun rises 🥱
September 4, 2025 at 2:27 AM
I have just opened two of the most exciting PRs for Chaotic Job. Soon, you will be able to write tests and simulations for the two most common sources of bugs in background jobs: (1) retries and now (2) races

github.com/fractaledmi...
GitHub - fractaledmind/chaotic_job: 👾 Resilience test helpers for Active Job
👾 Resilience test helpers for Active Job. Contribute to fractaledmind/chaotic_job development by creating an account on GitHub.
github.com
August 16, 2025 at 9:02 AM
I need some great RSS feeds to provide me with some quality longer form reading material. Hit me with all of your recommendations!
August 9, 2025 at 9:29 PM
🌶️ take:

All IO interfaces should be owned/proxied by in-app classes.

So, you should have something like an S3Client class, an FFMPEGClient class, a GoogleOAuthClient class, a QueueRedisClient class, a CacheRedisClient class, etc. in your application
August 8, 2025 at 8:21 PM