Hacker News new | past | comments | ask | show | jobs | submit login

This made me laugh:

def can_drive(age) case age when 1..14 then 'no' when 15..100 then 'yes' end end

puts can_drive(18) # yes

I haven't used Ruby for a long time, and I don't feel bad about it.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: