DEV Community

Discussion on: Lazy names are lazy

Collapse
 
maestromac profile image
Mac Siri • Edited

I name things based on what I'm thinking right at that moment.

hmm = User.first.name
huh = "lskdfjlksjdf"
what = /\(^[a-zA-Z0-9]+\)\.\([a-z]+\)/
damit = huh.gsub(what, hmm)