monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] Workspace commands and automate/stdio


From: Nathaniel Smith
Subject: Re: [Monotone-devel] Workspace commands and automate/stdio
Date: Mon, 9 Jul 2007 17:58:24 -0700
User-agent: Mutt/1.5.13 (2006-08-11)

On Mon, Jul 09, 2007 at 05:14:12PM +0200, Thomas Keller wrote:
> Well, adding those commands to automate is fairly trivial, there are
> mostly two problems with it:
> 
> a) implementing the commands means code doubling, and that also means
> double maintenance

Only if you do it wrong.  I know I sound like a broken record about
this, but you *are* allowed to factor that code out into common
support code, plus interface-specific bits (argument parsing, output
formatting).  There's no law that says if a program can do two similar
things, it must have code duplication...

-- Nathaniel

-- 
The Universe may  /  Be as large as they say
But it wouldn't be missed  /  If it didn't exist.
  -- Piet Hein




reply via email to

[Prev in Thread] Current Thread [Next in Thread]