Ad
  • Default User Avatar

    I agree that, especially in a professional setting, cramming everything into one line isn't necessarily the most practical approach if many people will have to write code. Glad you brought this up!

    An additional question for you: I'm new to Ruby-- what's the point of making your helper method decodeWord private? Thanks!

  • Custom User Avatar

    We obviously think alike because I literally came up with the exact same solution. I would consider this more elegant than a one-line solution for the sake of both readability and future maintainability.