[Rails Notes] Rails Concerns, and an Example of Wrapping Polymorphic Association
Rails Concern can be helpful to DRY code under certain circumstances. Here is also an example of wrapping polymorphic has_many through association.
Rails Concern can be helpful to DRY code under certain circumstances. Here is also an example of wrapping polymorphic has_many through association.
On the first day that .dev domains open to public registration, I picked up a new hobby.
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.
K-sum problems is a type of algorithm problems I encountered when preparing for job interviews. Problem statement: Given an array of integers, return all unique combinations of k numbers such that they add up to a specific target. (Assuming k < number of elements in the given integer array) ( The signature of the function will…