kaspth
Rails consultant, formerly on the Rails core team — I can help you. Email or DM and we can talk.
Funding Links: https://github.com/sponsors/kaspth
- Name: Kasper Timm Hansen
- Location: Copenhagen
- Kind: user
- Followers: 763
- Following: 95
- Total stars: 849
- Repositories count: 72
- Created at: 2022-11-04T06:41:35.358Z
- Updated at: 2025-03-25T04:55:00.342Z
- Last synced at: 2025-03-25T04:55:00.342Z
GitHub Sponsors Profile
Hey, I'm Kasper — I've served on the Rails core team for 6 years & merged 1000s of contributor PRs on rails/rails.
Your sponsorship goes toward more exploratory work and experiments
I'm trying out different ways of extending and expressing Domain Models in Ruby and Rails. Here's what I've come up with so far.
Here's extending our model layer with more descriptive vibes:
https://github.com/kaspth/active_record-associated_object — Extract Collaborator Objects from your Active Records, a new concept called Associated Objects.
https://github.com/kaspth/active_record-ingress — Pass control of Active Record methods to a dedicated object, though really it's about having a conventional place for operations in your app.
Here's a Ruby extension to help define initializers https://github.com/kaspth/struct-initializer
I've added https://github.com/kaspth/conventional_extensions as an alternative way to extend your domain model instead of ActiveSupport::Concern.
https://github.com/kaspth/action_controller-stashed_redirects is some syntactic sugar on top of redirect_to to help with cross-controller communication.
For the future, I'm curious about exploring more extensions and changes to Rails' view layer. It's stayed the same for a decade and nobody's really touched it yet. Thank you for considering me for your sponsorship ✨
- Current Sponsors: 7
- Past Sponsors: 33
- Total Sponsors: 40
- Minimum Sponsorship: $9.00
Featured Works
kaspth/active_record-associated_object
Extract Collaborator Objects from your Active Records, a new concept called Associated Objects
Language: Ruby - Stars: 280kaspth/oaken
Oaken upgrades your development seeds, lets you reuse them in tests & blends the best of fixtures & factories into one cohesive whole.
Language: Ruby - Stars: 261kaspth/active_job-performs
ActiveJob::Performs adds the `performs` macro to set up jobs by convention.
Language: Ruby - Stars: 160kaspth/action_controller-stashed_redirects
Stash a redirect to execute a controller flow within another and return to the original flow later.
Language: Ruby - Stars: 58bullet-train-co/nice_partials
A little bit of magic to make partials perfect for components.
Language: Ruby - Stars: 343kaspth/conventional_extensions
ConventionalExtensions sets up a file naming convention to extend your domain model
Language: Ruby - Stars: 71Active Sponsors
Past Sponsors
Sponsor Breakdown
- User: 29
- Organization: 7