<div class="gmail_quote">On Mon, Jan 31, 2011 at 6:19 PM,  <span dir="ltr">&lt;<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On 10:39 pm, <a href="mailto:tom@recursivedream.com">tom@recursivedream.com</a> wrote:<br>
&gt;<br>
&gt;Take &lt;<br>
&gt;<a href="http://twistedmatrix.com/documents/10.2.0/web/howto/web-in-60/static-" target="_blank">http://twistedmatrix.com/documents/10.2.0/web/howto/web-in-60/static-</a><br>
&gt;content.html<br>
&gt;&gt;:<br>
&gt;<br>
&gt;Tell me the one command I need to serve a directory, *then* show me the<br>
&gt;code<br>
&gt;that one command effectively runs and vaguely what it does.<br>
<br>
</div>I think this is partially a disagreement over what tasks we actually<br>
want to document.  If the command line interface gets primacy in the<br>
documentation, then I think you&#39;re writing documentation for end users<br>
(sys admins, non-programmers).  I don&#39;t know about anyone else, but this<br>
category of documentation hadn&#39;t really crossed my mind before.<br>
<br>
I think that (ultimately) this is good documentation to have, but I<br>
don&#39;t know if it&#39;s as important as getting the programmer-oriented<br>
documentation in better shape.<br>
<br>
Another point to consider is that &quot;twistd web&quot; (and most other twistd<br>
plugins we provide) are semi-random mish mashes of functionality.  They<br>
have accreted by contribution from many different people over the years<br>
with no governing design or goal aside from &quot;expose features from the<br>
command line&quot;.  This does not make them the friendliest tools around.<br>
The functionality they are missing is often surprising, particularly<br>
when contrasted with some of the (non-)functionality they do provide.<br>
<br>
I don&#39;t want to say that they do not bear documenting until their state<br>
is improved, but if we focused on other areas first, maybe we would have<br>
something better to document when we eventually get around to things<br>
like &quot;twistd web&quot;.<br></blockquote><div><br></div><div>I look at it from a pragmatic point of view: If the task is called &quot;serving HTML&quot; and you <i>can</i> do that with a single command line argument, I&#39;m willing to possibly waste a sentence exposing something unideal or incomplete if it fixes the visitor&#39;s problem <i>right now</i>. That&#39;s simply not a lot of effort  for a good deal of gain. Immediately after that command line section should be a dive into the actual code (or at least enough to get serving via a python file).</div>

<div><br></div><div>I suppose you may disagree with task-based views entirely. The using twisted.web &quot;howto&quot; isn&#39;t really one at all. It covers many / all of the serving aspects of twisted.web which is cool and necessary, but the actual building block tasks are buried.</div>

<div><br></div><div>It&#39;s still early and I&#39;m not sure how much sense I&#39;m making here. I think a more complete example of what I&#39;m talking about could serve to remedy a lot of these issues and show that what everybody wants (and already has) is still present, just moved to a more logical place.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Jean-Paul<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</div></div></blockquote></div><br>