I have always been taught to use conditions that ask if true, rather than if not true.
if variable.present? - good if variable != nil - bad
Why is this the case? What is the downside to asking if something is not true?
Aucun commentaire:
Enregistrer un commentaire