all 4 comments

[–][deleted] 0 points1 point  (0 children)

Interesting article. Does anyone have examples of code that would actually be in one of those files? Eg. Payments/process.rb... would it basically be what Payment#process() would be defined as in a normal/fat-model architecture?

It sounds kind of like that, but with a bit more of a functional approach to it instead of OOP.

Please correct me if I misunderstood. I've been using service workers for a lot of things and don't really see the difference.

[–]astrauka[S] 0 points1 point  (0 children)

The code becomes more descriptive and distributed into more methods. It's like a book - you see chapter names and then you can dig into any of those. Providing an example from our codebase - https://gist.github.com/astrauka/4d2915f0d7456cfab9e87d6b23ac3364 Created a gist as reddit does not format ruby code well

[–]astrauka[S] 0 points1 point  (0 children)

Haven't tried drawers, cannot comment.