DEV Community

Discussion on: Level Up Your Ruby Skillz: Writing Compact Code

Collapse
 
drbragg profile image
Drew Bragg

Now I want to go back to all my old code and refactor everything that says x = a if x.nil? into x ||= a That's so awesome.