111 Followers
160 Following
59 Posts

Two incompatible (?) ways of using packwerk

My book Gradual Modularization for Ruby and Rails is about using Packwerk for, well, gradual modularization. While I wrapped up the manuscript about six months ago, the bulk of the innovation over the things I thought about in Component-based Rails Applications happened in 2021 and 2022. It has been a while since I took a long look at the merits of the underlying tool. This year, I’ve realized there are two very different ways to use Packwerk.

https://fed.brid.gy/r/https://stephanhagemann.com/posts/2025-08-23-07-15-10-packwerk-two-modes

TIL that https://rubygems.org recently surpassed 4B downloads per month. That is over 1500 downloads per second … all day every day. RubyCentral does this on a shoestring budget. If you do anything with Ruby, you’re depending on Ruby gems and the work RubyCentral does. Consider sponsoring them! Check out: https://rubycentral.org

Oh yeah, one more point: do you recall a recent rubygems outage? Chances are you can’t! Such an impressive track record!

#ruby
RubyGems.org | your community gem host

Welcome to mastodon, @stephanhagemann.com !

I have no words that can describe how absolutely bonkers this is.

https://m.youtube.com/watch?v=0mCsluv5FXA

TypeScript types can run DOOM

YouTube

Am I going to see you at RailsConf next week?

I am part of a big group from @GustoHQ that is going to #RailsConf2024 and I would love to chat about all things #ruby #rails and #gradual_modularization!

https://medium.com/gusto-engineering/gusto-is-heading-to-railsconf-2024-in-detroit-9b01d34db7c2

Gusto is heading to RailsConf 2024 in Detroit! - Gusto Engineering - Medium

We are very excited to join RailsConf 2024 and support this community as a gold sponsor. If you'll be at the conference, we'd love to connect!

Gusto Engineering
We’re thrilled to announce that we’ve been awarded a $250,000 grant from Alpha-Omega! The funds will support critical projects on RubyGems.org, RubyGems and Bundler. Learn more about how we'll be using this funding: https://buff.ly/4cBOIvw
Ruby Central Receives Alpha-Omega Grant

Ruby Central is thrilled to announce that we have been awarded a two part grant from Alpha-Omega. The $250,000 grant will support critical open source projects on RubyGems.org, RubyGems and Bundler.  Alpha-Omega is an OpenSSF associated project of the OpenSSF, established in February 2022, funded by Microsoft, Google,

Ruby Central

I'm picking up momentum again on my Hanami work.

With this PR I've now tackled the first half of a re-envisioned approach to assets compilation across slices (https://github.com/hanami/assets-js/pull/20), and now I'm ready to move onto the Ruby half (where I'll surely move much faster!).

#ruby #hanami

Compile within single slice only by timriley · Pull Request #20 · hanami/assets-js

Update our esbuild wrapper to compile a single assets directory at a time. Previously, we crawled the entire app structure to find all assets directories (with the app and/or slices) and processed ...

GitHub

👋 Just a heads up that I re-released Chapter 8 with updated content on measuring modularization progress!

In addition to general improvements, this release fixes outdated references to how things work with the various open-source tools.

Get it here:
https://leanpub.com/package-based-rails-applications
https://stephanhagemann.com/books/gradual-modularization/

If you already bought the book, log into @leanpub to get the latest version!

#gradualmodularization #ruby #rails #architecture

Gradual Modularization for Ruby and Rails

Better Rails apps with packages! Manage the complexities of your domain by elevating your ability to discuss boundaries and isolate subsystem with no overhead

Leanpub

Folks are still finding engines as a way to do modularization in #ruby and #rails. I just found two new talks (one from #railsworld) where folks are presenting how they approached it! I added both to https://cbra.info

https://www.youtube.com/watch?v=StDoHXO8H6E
https://www.youtube.com/watch?v=ZE9dKoBIr48

Component-Based Rails Applications

Large Domains Under Control

Next up:
* Revamp Chapter 7 (which previously discussed all of RubyAtScale... it now needs to be shortened to cover only what is not covered in Chapter 4)
* Bring back Chapter 8 (Measuring modularization progress)
* Bring back and finish Chapter 9 (How to make modularization progress)

Cheers!