Comment

Comment by bradly

Here is common use case I use for this in my Rails apps:

This is the most common way I use it:

    class ApplicationService
      def call
        raise NotImplementedError
      end
    
      def self.call(...)
        new(...).call
      end
    end
    
    class MyService < ApplicationService
      def call(service_specific_arg: 123)
        #...
      end
    end
parent bradly 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton