OOP vs. services for organizing business logic: is there a third way?

This page summarizes the projects mentioned and recommended in the original post on dev.to

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. learn-ruby

    Learning resources for Ruby, Rails, and related skills.

    So I've set out to explore the problem of organizing business logic from more angles than before, using the resources listed below. These lists are excerpted from my "Learning Ruby" road map which I often update, so you may want to find these lists there if this post is old at the time of your reading it. The sections corresponding to the lists below are, at the time of writing, "Rails architecture" and "Rails codebases".

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. Interactor

    Interactor provides a common interface for performing complex user interactions.

    Interactor

  4. Rails Event Store

    A Ruby implementation of an Event Store based on Active Record

    Rails Event Store – for an event-driven architecture

  5. ventable

    Event/Observable support for plain ruby with options for grouping observers and wrapping notifications in blocks of code, such as transaction handling.

    Ventable – a variation of the Observer design pattern

  6. wisper

    A micro library providing Ruby objects with Publish-Subscribe capabilities

    Wisper – the Publish-Subscribe design pattern

  7. packwerk

    Good things come in small packages.

    Packwerk – to enforce boundaries and modularize Rails applications

  8. CodeTriage

    Discover the best way to get started contributing to Open Source projects

    github.com/codetriage/codetriage (6k lines): Issue tracker for open-source projects.

  9. railsdevs.com

    Discontinued The reverse job board for Ruby on Rails developers.

    github.com/joemasilotti/railsdevs.com (12k lines): The reverse job board for Ruby on Rails developers.

  10. Lobsters

    Computing-focused community centered around link aggregation and discussion

    github.com/lobsters/lobsters (13k lines): Hacker News clone.

  11. upcase

    Sharpen your programming skills.

    github.com/thoughtbot/upcase (14k lines): Learning platform for developers.

  12. HoundCI

    Discontinued Automated code review for GitHub pull requests. [GET https://api.github.com/repos/houndci/hound: 404 - Not Found // See: https://docs.github.com/rest/repos/repos#get-a-repository] (by houndci)

    github.com/houndci/hound (14k lines): Automated code review for GitHub PRs.

  13. RubyGems

    The Ruby community's gem hosting service.

    github.com/rubygems/rubygems.org (26k lines): Where Ruby gems are hosted.

  14. Solidus

    🛒 Solidus, the open-source eCommerce framework for industry trailblazers.

    github.com/solidusio/solidus (72k lines): E-commerce platform.

  15. Mastodon

    Your self-hosted, globally interconnected microblogging community

    github.com/mastodon/mastodon (75k lines): Like Twitter but self-hosted and federated.

  16. forem

    For empowering community 🌱

    github.com/forem/forem (103k lines): Powers the blogging site dev.to.

  17. whitehall

    Publishes government content on GOV.UK

    github.com/alphagov/whitehall (117k lines): Publishes government content on gov.uk.

  18. Discourse

    A platform for community discussion. Free, open, simple.

    github.com/discourse/discourse (322k lines): Discussion forum platform.

  19. Canvas LMS

    The open LMS by Instructure, Inc.

    github.com/instructure/canvas-lms (745k lines): A popular LMS (learning management system).

  20. gitlab

    gitlab.com/gitlab-org/gitlab (1.8 million lines): Like GitHub but with CI/CD and DevOps features built in. Has great docs on architecture.

  21. Sequent

    CQRS & event sourcing framework for Ruby

    Sequent – CQRS and event sourcing

  22. govuk-puppet

    Discontinued Decommissioned: Puppet manifests that used to provision the legacy GOV.UK stack.

    Publishes government content on gov.uk.

  23. Hanami

    A flexible framework for maintainable Ruby apps

    Data Oriented Web Development with Ruby (upcoming book) by Peter Solnica, who is on the Hanami core team. Learning Hanami wouldn't be a bad idea either.

  24. dry-transaction

    Business transaction DSL

    dry-transaction

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Ask HN: Is there an open source HN?

    6 projects | news.ycombinator.com | 19 Oct 2025
  • Pressure-testing Ota on Discourse: repo-wrapper truth matters more than a passing bundle command

    2 projects | dev.to | 6 Jun 2026
  • I will continue using Devise with Rails 8!

    10 projects | dev.to | 25 May 2026
  • Ruby on Rails Performance: 7 Lessons from Scaling FirstPromoter

    7 projects | dev.to | 9 Apr 2026
  • Servactory — Typed Service Objects with Declarative Actions for Ruby

    1 project | dev.to | 24 Feb 2026

Did you know that Ruby is
the 12th most popular programming language
based on number of references?