Harish Reddy Vantikommu·Jun 22, 2023Ruby | Enumerable: take_while vs drop_while methodsIn Ruby, the take_while and drop_while methods are both used to extract elements from an array based on a certain condition. However, they…A response icon1A response icon1
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…
Harish Reddy Vantikommu·Sep 7, 2021Tips to improve performance in ROR.Ruby is a heavily object-oriented language. In fact, (almost) everything in Ruby is an object. Creating unnecessary objects will cost our…A response icon4A response icon4