On Fri, Apr 27, 2012 at 09:28:07AM -0700, Evan Martin wrote:
> We were on Hacker News again:
>
http://news.ycombinator.com/item?id=3895551
>
> Whenever Ninja comes up on a site like HN or reddit, the same
> questions and misunderstandings come up. I blame myself for not being
> clear enough in the documentation.
This is probably a fair assessment. While some of this is unavoidable
(people don't tend to read documentation until they have a specific
problem, no matter how much energy you put into it,) I think it's a
reasonable goal for documentation to answer most *common* questions,
particularly if they come up again and again.
> I'm always a little uncomfortable with how much "ninja is awesome"
> text I should include versus modesty. If you have feedback on the
> above, I'd appreciate it.
When I started this reply, I thought "there's nothing really wrong with
a project showing a little bit of self confidence," but as I think about
it more, I think bragging v. modesty, obscures the real issue. The thing
that would be really helpful would be to have a more clear understanding
of the particular situations where ninja makes a lot of sense, and the
situations where ninja *doesn't* wouldn't be the right build tool for
the job.
Additionally, it might be nice to have a few examples/tutorials that
provide an overview of using ninja in concert with
gyp/cmake/ninja_script.py. If ninja really is an assembler, the
documentation ought to (I think,) document the use of ninja in concert
with gyp/cmake/etc, or at least provide examples. I'm not sure that this
kind of information includes inline in the current manual, and I'm
willing to do a little work to build these tutorials/documents, if
there's an interest in this. Pull request and an additional document in
the docs/ folder make the most sense or is there another
format/forum for this kind of resource?
Does anyone have a public/open source project that uses gyp other than
Chromium that might provide a good example?
> I'm especially not clear on whether build timings belong in the
> manual, but I had hoped by including some it would help illustrate
> which projects Ninja helps on.
I think build timings are perfectly acceptable for inclusion.
--
tycho(ish) @
ga...@tychoish.com
http://tychoish.com/
"don't get it right, get it written" -- james thurber