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

Guard clauses are great, and when used appropriately clean things up. This is pretty much my only use of the pattern.

(Ending boolean-returning methods with a ? is also a great convention in ruby.)




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

Search: