Tip-toeing in Code
def maybe_activate_frob
frob.activate! if x && y && z || a && b || c
end
vs.
def activate_frob_if_possible
frob.activate! if frob.can_activate?
end
vs.
frob.activate! if frob.can_activate?
I think I prefer the last version.
6 Notes/ Hide
-
globalspin liked this
-
iampedantic posted this