|
|
|
|
|
by ismaelct
817 days ago
|
|
What do you think of the Rack interface? Or ActiveRecord's query chaining? ex. User.where(admin: true).joins(:account).order(id: :asc) It's all versions of the same approach. And yes all of the above _can_ complicate debugging, for sure. But so can most abstractions. Only use them if the specific problem they solve is bigger than the drawbacks. |
|
My point is more to think twice about adding your own, and after thinking twice about it, think about it ten more times. Most people using Rails will already have an understanding or mastery of the abstractions you mentioned, but that understanding guarantee drops off quick with third-party gems, and is a guaranteed no for custom in-house solutions.