Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dkdbejwi383
on Dec 13, 2022
|
parent
|
context
|
favorite
| on:
Read this post ‘unless’ you’re not a Ruby develope...
Fair enough argument for that particular example, but I think the author's point still stands for the other example (if !user.suspended do send_email end)
e12e
on Dec 13, 2022
[–]
That example makes more sense as:
send_email unless user.suspended?
Here we see that we normally send email - except for the exceptional case of the user being suspended.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: