Cool. Thanks for this one, re: editors. I was busy venting on comments :-)
before getting to Ben's reply to my query about the editors. I think you
articulated it a lot better than I would have
On Wed, Apr 03, 2002 at 04:50:52PM -0600, firstname.lastname@example.org wrote:
> Greg Stein <email@example.com> writes:
> > Is it reasonable now to remove the before/after editor concept [from across
> > the interface] ? i.e. stop composing editors and shift to a pure
> > notification system?
> I'd certainly like to do so.
> My Big Issue with the whole before/after editor thing boils down to
> one thing. If you take a look at the interfaces for
> svn_client_update, _import, _switch, _commit, etc. you'll note that
> nowhere in the docstrings is it mentioned (or even strongly implied)
> that the underlying implementation of those actions involves the use
> of editors. Sure, we know that under the hood they use editors, but
> the minute that changes, or the minute that editors are used
> differently than expected (like in the new commit system) those
> before/after editors either a) have nothing to be composed with at
> all, or b) just don't work.
Yes! "Coupling" would be the word here. The exposure of the editors couples
the inside pieces to the outside pieces. And due to the nature of the editor
interface, it does it very strongly.
> In my opinion, the use of editors for the client-layer operations is
> an implementation detail that need not be exposed outside that layer.
Agreed. I think you really clarified the gut issue that I had with them.
> > This sequence of else/if makes it look like the "state_flags" should
> > actually be an enumerated constant, rather than bit fields.
> Nonono. These are non-exclusive. For example, something copied and
> modified can have a state with ADD, COPIED, and TEXT_MODS set.
Hmm. Well, that section of code is a bunch of else/ifs. You may want to
review the sequence to ensure that all combos are properly represented.
There is potential for error in there, especially if more flags are grown or
Greg Stein, http://www.lyra.org/
To unsubscribe, e-mail: firstname.lastname@example.org
For additional commands, e-mail: email@example.com
Received on Thu Apr 4 01:26:52 2002