Yes, having methods along the lines of "ensure" and "do" that
are paired makes sense and I have seen the strategy work well. The
challenge is that you often want these two methods to be invoked within
a single transaction context. For example, you don't want to return true
from ensureXX
Hi,
Big picture, I have a form that gives you the ability to 'move' an
object. I'd like to check to see if the destination location already
exists so nothing would be overwritten. If something does exist, I'd
like to output what object (and its values) is there, and do a
confirmation screen.
2 matches
Mail list logo