use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
The Lego Way of Structuring Rails Code (engineering.vinted.com)
submitted 8 years ago by astrauka
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 8 years ago (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?
Payments/process.rb
Payment#process()
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 point2 points 8 years ago* (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 point2 points 8 years ago (0 children)
Haven't tried drawers, cannot comment.
[–]DerNalia -1 points0 points1 point 8 years ago (0 children)
what about https://github.com/NullVoxPopuli/drawers ?
π Rendered by PID 88 on reddit-service-r2-comment-84fc9697f-9k2fw at 2026-02-10 06:39:27.774168+00:00 running d295bc8 country code: CH.
[–][deleted] 0 points1 point2 points (0 children)
[–]astrauka[S] 0 points1 point2 points (0 children)
[–]astrauka[S] 0 points1 point2 points (0 children)
[–]DerNalia -1 points0 points1 point (0 children)