Re: libgit2 - a true git library

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andreas Ericsson
Date: Monday, November 3, 2008 - 6:08 am

Shawn O. Pearce wrote:

Thanks for the detailed explanation.


I noticed when I fetched the latest head today that it's already
done. I fail to understand why headers need to be in a separate
path so that oid.c can't just '#include "oid.h"'.

With the risk of nitpicking you to death, put public headers in a
separate dir (I'd suggest public/%.h in Make-speak, but I have no
strong preference) and keep private headers next to %.c. Always
#include the public header file from the private one (that should
probably be in CONVENTIONS).


Right. I guess I'm too firm a believer in system evolution by constant
refactoring (with fluctuating api's, yes) rather than thinking initial
design can ever be done exactly right.


True, but designing top-down means you'll need to write one more
API to get the first stuff working, so you'll always be using the
new code you write immediately and for something real. IMO, that
makes it much more fun and productive to write the lib itself.


No, I'm one of those developers who think that if implementing a
function as thread-safe means it'll take 50 times longer than just
writing something that works, the right decision is to go with the
faster way to get the job done and then expand on it later when the
need arises. Reading my original post, I realize I should have made
that more clear. Sorry for making your gall rise unnecessarily.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
libgit2 - a true git library, Shawn O. Pearce, (Fri Oct 31, 10:07 am)
Re: libgit2 - a true git library, Pieter de Bie, (Fri Oct 31, 10:28 am)
Re: libgit2 - a true git library, Pieter de Bie, (Fri Oct 31, 10:29 am)
Re: libgit2 - a true git library, Pierre Habouzit, (Fri Oct 31, 10:47 am)
Re: libgit2 - a true git library, Shawn O. Pearce, (Fri Oct 31, 11:41 am)
Re: libgit2 - a true git library, Pierre Habouzit, (Fri Oct 31, 11:54 am)
Re: libgit2 - a true git library, Shawn O. Pearce, (Fri Oct 31, 12:57 pm)
Re: libgit2 - a true git library, Junio C Hamano, (Fri Oct 31, 1:05 pm)
Re: libgit2 - a true git library, Pierre Habouzit, (Fri Oct 31, 1:12 pm)
Re: libgit2 - a true git library, Nicolas Pitre, (Fri Oct 31, 1:24 pm)
Re: libgit2 - a true git library, Brian Gernhardt, (Fri Oct 31, 1:24 pm)
Re: libgit2 - a true git library, david, (Fri Oct 31, 1:29 pm)
Re: libgit2 - a true git library, Nicolas Pitre, (Fri Oct 31, 1:56 pm)
Re: libgit2 - a true git library, Pierre Habouzit, (Fri Oct 31, 2:31 pm)
Re: libgit2 - a true git library, Shawn O. Pearce, (Fri Oct 31, 2:43 pm)
Re: libgit2 - a true git library, Shawn O. Pearce, (Fri Oct 31, 2:50 pm)
Re: libgit2 - a true git library, Pierre Habouzit, (Fri Oct 31, 2:51 pm)
Re: libgit2 - a true git library, Shawn O. Pearce, (Fri Oct 31, 2:58 pm)
Re: libgit2 - a true git library, Andreas Ericsson, (Fri Oct 31, 2:59 pm)
Re: libgit2 - a true git library, Shawn O. Pearce, (Fri Oct 31, 3:01 pm)
Re: libgit2 - a true git library, Nicolas Pitre, (Fri Oct 31, 3:10 pm)
Re: libgit2 - a true git library, Junio C Hamano, (Fri Oct 31, 3:51 pm)
Re: libgit2 - a true git library, Junio C Hamano, (Fri Oct 31, 4:14 pm)
Re: libgit2 - a true git library, Bruno Santos, (Fri Oct 31, 4:18 pm)
Re: libgit2 - a true git library, Johannes Schindelin, (Fri Oct 31, 4:22 pm)
Re: libgit2 - a true git library, Pieter de Bie, (Fri Oct 31, 4:24 pm)
Re: libgit2 - a true git library, Shawn O. Pearce, (Fri Oct 31, 4:25 pm)
Re: libgit2 - a true git library, Shawn O. Pearce, (Fri Oct 31, 4:28 pm)
Re: libgit2 - a true git library, Pierre Habouzit, (Fri Oct 31, 4:33 pm)
Re: libgit2 - a true git library, Shawn O. Pearce, (Fri Oct 31, 4:41 pm)
Re: libgit2 - a true git library, Junio C Hamano, (Fri Oct 31, 4:49 pm)
Re: libgit2 - a true git library, Jakub Narebski, (Fri Oct 31, 4:56 pm)
Re: libgit2 - a true git library, Pierre Habouzit, (Fri Oct 31, 5:02 pm)
Re: libgit2 - a true git library, Shawn O. Pearce, (Fri Oct 31, 5:13 pm)
Re: libgit2 - a true git library, Shawn O. Pearce, (Fri Oct 31, 5:19 pm)
Re: libgit2 - a true git library, david, (Fri Oct 31, 5:41 pm)
Re: libgit2 - a true git library, Shawn O. Pearce, (Fri Oct 31, 6:00 pm)
Re: libgit2 - a true git library, Pierre Habouzit, (Fri Oct 31, 6:02 pm)
Re: libgit2 - a true git library, david, (Fri Oct 31, 6:04 pm)
Re: libgit2 - a true git library, Pierre Habouzit, (Fri Oct 31, 6:06 pm)
Re: libgit2 - a true git library, Pierre Habouzit, (Fri Oct 31, 6:08 pm)
Re: libgit2 - a true git library, Nicolas Pitre, (Fri Oct 31, 6:15 pm)
Re: libgit2 - a true git library, Shawn O. Pearce, (Fri Oct 31, 6:19 pm)
Re: libgit2 - a true git library, Nicolas Pitre, (Fri Oct 31, 6:33 pm)
Re: libgit2 - a true git library, david, (Fri Oct 31, 6:36 pm)
Re: libgit2 - a true git library, Pierre Habouzit, (Fri Oct 31, 6:38 pm)
Re: libgit2 - a true git library, Shawn O. Pearce, (Fri Oct 31, 6:43 pm)
Re: libgit2 - a true git library, Nicolas Pitre, (Fri Oct 31, 6:45 pm)
Re: libgit2 - a true git library, Nicolas Pitre, (Fri Oct 31, 6:49 pm)
Re: libgit2 - a true git library, Shawn O. Pearce, (Fri Oct 31, 6:52 pm)
Re: libgit2 - a true git library, Nicolas Pitre, (Fri Oct 31, 6:53 pm)
Re: libgit2 - a true git library, Johannes Schindelin, (Fri Oct 31, 7:26 pm)
Re: libgit2 - a true git library, Andreas Ericsson, (Sat Nov 1, 3:52 am)
Re: libgit2 - a true git library, Pierre Habouzit, (Sat Nov 1, 4:01 am)
Re: libgit2 - a true git library, Andreas Ericsson, (Sat Nov 1, 4:17 am)
Re: libgit2 - a true git library, Nicolas Pitre, (Sat Nov 1, 6:50 am)
Re: libgit2 - a true git library, Pierre Habouzit, (Sat Nov 1, 10:01 am)
Re: libgit2 - a true git library, Pierre Habouzit, (Sat Nov 1, 10:30 am)
Re: libgit2 - a true git library, Andreas Ericsson, (Sat Nov 1, 11:44 am)
Re: libgit2 - a true git library, Pierre Habouzit, (Sat Nov 1, 11:48 am)
Re: libgit2 - a true git library, Andreas Ericsson, (Sat Nov 1, 12:18 pm)
Re: libgit2 - a true git library, Johannes Schindelin, (Sat Nov 1, 1:26 pm)
Re: libgit2 - a true git library, Shawn O. Pearce, (Sat Nov 1, 1:29 pm)
Re: libgit2 - a true git library, Shawn O. Pearce, (Sat Nov 1, 1:42 pm)
Re: libgit2 - a true git library, Andreas Ericsson, (Sat Nov 1, 2:58 pm)
Re: libgit2 - a true git library, Shawn O. Pearce, (Sat Nov 1, 3:57 pm)
Re: libgit2 - a true git library, Scott Chacon, (Sat Nov 1, 5:26 pm)
Re: libgit2 - a true git library, Scott Chacon, (Sat Nov 1, 6:07 pm)
Re: libgit2 - a true git library, Shawn O. Pearce, (Sat Nov 1, 6:36 pm)
Re: libgit2 - a true git library, Shawn O. Pearce, (Sat Nov 1, 6:50 pm)
Re: libgit2 - a true git library, Shawn O. Pearce, (Sat Nov 1, 6:56 pm)
Re: libgit2 - a true git library, Johannes Schindelin, (Sat Nov 1, 7:30 pm)
Re: libgit2 - a true git library, David Brown, (Sat Nov 1, 10:09 pm)
Re: libgit2 - a true git library, Pierre Habouzit, (Sun Nov 2, 2:19 am)
Re: libgit2 - a true git library, Pierre Habouzit, (Sun Nov 2, 2:25 am)
Re: libgit2 - a true git library, Andreas Ericsson, (Mon Nov 3, 3:17 am)
Re: libgit2 - a true git library, Andreas Ericsson, (Mon Nov 3, 6:08 am)
Re: libgit2 - a true git library, Shawn O. Pearce, (Mon Nov 3, 9:20 am)
Re: libgit2 - a true git library, Steve Frécinaux, (Sat Nov 8, 6:26 am)
Re: libgit2 - a true git library, Andreas Ericsson, (Sat Nov 8, 7:35 am)
Re: libgit2 - a true git library, Pierre Habouzit, (Sat Nov 8, 10:27 am)
Re: libgit2 - a true git library, Andreas Ericsson, (Sun Nov 9, 3:17 am)
Re: libgit2 - a true git library, Shawn O. Pearce, (Sun Nov 9, 2:02 pm)