Abstractions in Rails
Rails abstractions (Active Record, Active Job, Action Mailer, Active Storage, etc.) make it easy for developers to integrate with 3rd party service vendors without concerning about service-specific APIs.
Rails abstractions (Active Record, Active Job, Action Mailer, Active Storage, etc.) make it easy for developers to integrate with 3rd party service vendors without concerning about service-specific APIs.
Recently I’ve been context-switching between 2 different projects – one in Ruby and the other in Java – and I got a chance to utilize Builder Pattern (to be precise, it’s a variant of the classic builder pattern) in Java, and get impressed by how much simpler the solution could possibly be in Ruby. The…
A comparison between scope and namespace in Rails nested routes, and which one to pick.
Rails Concern can be helpful to DRY code under certain circumstances. Here is also an example of wrapping polymorphic has_many through association.
Using shared_examples and shared_context to DRY and better organize RSpec tests, so that we can keep high test coverage without needing to write repetitive tests.