Ask a Question related to Ruby, Design and Development.
-
dblack@superlink.net #1
excessive comments (was: Re: RDoc and i18n)<Pine.LNX.4.44.0310230647410.23172-100000@ool-4355dfae.dyn.optonline.net>
Hi --
On Thu, 23 Oct 2003, Austin Ziegler wrote:
But if it's a *really* simple method, in the sense that its name says> On Wed, 22 Oct 2003 10:16:10 +0900, Chad Fowler wrote:
>>> > I didn't feel like RDoc itself was in some way in need of a change. I
> > was critiquing what I think is non-value-adding documentation such as:
> >
> > # Remove an element from the list
> > def remove_from_list(element)
> > @list.remove(element)
> > end
> You're right. If you have the code immediately available, then such
> documentation *is* NVA. In API documentation, though, I disagree that it's
> NVA. I find it quite annoying to open an rdoc API and find that half of the
> methods aren't documented ... until I open the code window and see that it
> really is a simple method.
everything that needs to be known about it, then isn't it essentially
self-documenting, even if it just appears in a list? I guess I see it
as a kind of cascade: if the method name doesn't suffice, then the
documentation function falls through to the comments.
I just think it's a pity, in a language like Ruby where the code is so
expressive, to clutter up the source files beyond the absolutely
necessary.
David
--
David Alan Black
home: [email]dblack@superlink.net[/email]
work: [email]blackdav@shu.edu[/email]
Web: [url]http://pirate.shu.edu/~blackdav[/url]
dblack@superlink.net Guest
-
learning the "Ruby way"<Pine.LNX.4.44.0311201150530.4491-100000@ool-4355dfae.dyn.optonline.net><Pine.LNX.4.44.0311201137580.4435-100000@ool-4355dfae.dyn.optonline.net>
Hi -- On Fri, 21 Nov 2003 dblack@wobblini.net wrote: Just to clarify: "This" means my solution, not your question :-) David -
"stereotyping" (was: Strong Typing (Managing metadata aboutattribute types))<Pine.LNX.4.44.0311171402340.1133-100000@ool-4355dfae.dyn.optonline.net><Pine.LNX.4.44.0311181524130.2236-100000@ool-4355dfae.dyn.optonline.net>
Hi -- On Tue, 18 Nov 2003, Thien Vuong wrote: Class name checking doesn't ensure needed behavior. Actually, let me say first that while I... -
exceptions<Pine.LNX.4.44.0311031950040.30279-100000@ool-4355dfae.dyn.optonline.net>
Hi -- On Tue, 4 Nov 2003, Joel VanderWerf wrote: I'm not sure what Exception's initialize does, but it might be good to call super here too.... -
Prolly a simple question<Pine.LNX.4.44.0310111117330.29007-100000@ool-4355dfae.dyn.optonline.net><Pine.LNX.4.44.0310111103530.28872-100000@ool-4355dfae.dyn.optonline.net>
Whoops, that was a message from March I just replied to. We're getting another wave of old messages. David -- David Alan Black home:... -
Enumerable#inject is surprising me...<Pine.LNX.4.44.0310082145050.20002-100000@ool-4355dfae.dyn.optonline.net><Pine.LNX.4.44.0310082132090.19888-100000@ool-4355dfae.dyn.optonline.net>
On Thu, 9 Oct 2003 dblack@superlink.net wrote: Whoops, I mean how it gets into the second one at all. David -- David Alan Black



Reply With Quote

