Photo by Christin Hume on Unsplash

When the iPhone first hit the market, I would commonly hear the phrase “there’s an app for that”. Need a scientific calculator? Want a way to see what restaurants are nearby? Need access to multiple email inboxes? There’s an app for that. The Apple catch phrase was good at marketing without singling out specific apps, but rather encouraged the user to explore the growing field for themselves.

In a similar way, VSCode could make its slogan “there’s an extension for that”. Do you always forget to put an “end” after a method when coding in Ruby? Does your HTML look…


Linking together multiple Ruby Enumerable Methods in order to maintain concise, readable code

Daisy Chain Flower Crown
Daisy Chain Flower Crown
Daisy chain (Bellis perennis) CREDIT: RICHARD BLOOM/GETTY IMAGES

One thing that has bothered me as I learn different enumerable methods is that some methods, such as Select or Map, produce new arrays of information. To keep changing or accessing information that these arrays produce, you can assign each method to a variable and call the new variable as you go along, but that can grow cluttered very quickly. This is where Method Chaining (or Daisy Chaining) comes into play. Just like tying together multiple daisies end to end makes a chain, you can string together method after method in Ruby, and get a neat, concise package. …

Amanda Nikrant

Software Engineer in training at Flatiron School. Talk to me about coding, cats, or crossfit!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store