Raj kushwah·Jan 31, 2025Metaprogramming in Ruby: A Deep Dive into Dynamic Method Creation Part-1Overview:->
InDevOps.devbySuman Awal·Mar 12, 2024Efficient data extraction with values_at in RubyIn Ruby, values_at method can be used to retrieve specific elements from an array or hash. It returns an array with the values based on the…A response icon1A response icon1
Bhuvaneshganesan·Feb 2, 2024Ruby default methodsListing all Ruby default methods (also known as built-in methods or core methods) would be quite extensive, as Ruby has a rich standard…
InRuby / Rails in PracticebyAlessio Bussolari·Dec 11, 2023The Hidden Risks of Delegation and N+1 Queries in RailsUnravel the potential pitfalls of using delegation in Rails, particularly how it can obscure N+1 query problems, compromising performance.
Ajay Jaitwal·Oct 15, 2023Ruby Predicate MethodsPredicate methods in Ruby are methods that return a boolean value, often indicating whether a condition is true or false. These approaches…
InUnagibyLucas Hourquebie·Sep 25, 2023Manejando colecciones en Ruby: each, map, select, find y otrosRuby es un lenguaje de programación sumamente expresivo, lo que significa que resulta muy fácil de leer y comprender. Esto lo podemos…
Harish Reddy Vantikommu·Jun 21, 2023flat_map: an unpopular built-in Ruby methodThe flat_map method in Ruby is a built-in enumerable method that returns a new array by applying a block to each element in the enumerable…
Juan Sebastian Medina Lopez·Apr 2, 2023Ruby Enumerable MethodsRuby is a powerful and versatile programming language that offers a wide range of features to developers. One of the most useful features…
Ron P. aka 顺子·Feb 10, 2023“Magic Pretzel”: Using the “&:” Operator in Ruby MethodsDuring the past two weeks I have been spamming a neat little “shortcut” that a classmate of mine discovered, “&:”. When I want my program…
Rosa Isela Soria·Jan 25, 2023De-Construction Time Again- Enumerable#tallyThrough 101/109 I’ve come across many of Ruby’s “power methods” — methods that do the heavy lifting of a task. They’re great for saving…