VValendeainvalendea.hashnode.dev·Jan 3, 2023 · 4 min readShould I use Redux or Context API?In React application, we can pass values from a parent to a child component through props. The issue comes up when the relationship between parent and child components is way too deep, where a nested child component needs values from the parent. Yes,...00
VValendeainvalendea.hashnode.dev·Dec 5, 2022 · 1 min readDebugging in Rails 7In Rails 5, byebug is a standard debugger to trace program execution flow and inspect the call stack within an application. From Rails 7, byebug has been replaced with ruby/debug and it comes with colors to highlight syntax. ruby/debug is included in...00
VValendeainvalendea.hashnode.dev·Mar 10, 2021 · 3 min readForwardable ModuleForwardable module is able to give new behaviour to an object by delegating the method to it, using def_delegator or def_delegators. Let’s say we have this class HousingUnit attr_reader :example def initialize @example = [:apartment, :flat, ...00