Re: ruby suggestion: officially sanctioned tutorials/howto's
- From: Robert Dober <robert.dober@xxxxxxxxx>
- Date: Tue, 23 Jun 2009 16:40:23 -0500
On Tue, Jun 23, 2009 at 11:30 PM, Robert
Klemme<shortcutter@xxxxxxxxxxxxxx> wrote:
On 23.06.2009 01:20, Robert Dober wrote:And what if documentation were the functionality of this code?
On Mon, Jun 22, 2009 at 6:50 PM, Joel VanderWerf<vjoel@xxxxxxxxxxxxxxxxx>
wrote:
James Gray wrote:
On Jun 22, 2009, at 7:10 AM, Roger Pack wrote:
To expand on James's proposal a bit... what about defining a module
called,
for example, Socket::Tutorial, and putting the material in the comment
block
of that module, for rdoc to find? Then:
`ri Tutorial` ==> list of tutorials(*)
`ri Socket::Tutorial` ==> the socket tutorial
`ri Socket::Tutorial.open` ==> tutorial on Socket.open.
(*) actually, I'm not sure current ri performs a search for x::Tutorial,
but
why shouldn't it?
Honestly that sounds brilliant. I am just a little bit confused about
the x::Tutorial, should that not be Tutorial::X
for X in { Array, Module, Class, Exception, Enumerator, You::Name::It } ?
And Tutorial would be a module in the standard lib?
I do not like the idea. Here's why: you add code which has the sole purpose
of carrying documentation. The primary purpose of source code is to provide
functionality and not serve as a text skeleton.
IMHO it is completely open if there would be code or only rdoc
documentation, but nicely included into the class hierarchy. Joël has
probably an idea about that.
You are absolutely correct, but please see above, no code as far as I
The second reason is, that documentation derived from code typically has a
different structure than "hand crafted" tutorials. This documentation is
structured around source code artifacts such as classes and modules. A
written tutorial focuses on tasks and usually has a structure so that you
can more easily learn when reading from beginning to end.
am concerned.
Not a bad idea at all. I would prefer to write it in textile rather
Having said that it is probably a good idea to include tutorials in the
standard distribution. But IMHO they should be written as tutorials,
probably using Textile markup or something similar.
than in rdoc.
However I still feel it would be great if we could incorporate Joël's
idea of linking it into the "right" place.
What'u think?
R.
.
- Follow-Ups:
- Re: ruby suggestion: officially sanctioned tutorials/howto's
- From: Roger Pack
- Re: ruby suggestion: officially sanctioned tutorials/howto's
- References:
- ruby suggestion: officially sanctioned tutorials/howto's
- From: Roger Pack
- Re: ruby suggestion: officially sanctioned tutorials/howto's
- From: James Gray
- Re: ruby suggestion: officially sanctioned tutorials/howto's
- From: Joel VanderWerf
- Re: ruby suggestion: officially sanctioned tutorials/howto's
- From: Robert Dober
- Re: ruby suggestion: officially sanctioned tutorials/howto's
- From: Robert Klemme
- ruby suggestion: officially sanctioned tutorials/howto's
- Prev by Date: [ANN] Autorake
- Next by Date: Re: HTML dom
- Previous by thread: Re: ruby suggestion: officially sanctioned tutorials/howto's
- Next by thread: Re: ruby suggestion: officially sanctioned tutorials/howto's
- Index(es):
Relevant Pages
|