[#386100] Numeric#coerce docs are disaster — 7stud -- <bbxx789_05ss@...>

num.coerce(numeric) =E2=86=92 array

14 messages 2011/08/02

[#386114] Documentation Improvement Proposal — Chris White <cwprogram@...>

=3D Issues =3D

24 messages 2011/08/02
[#386115] Re: Documentation Improvement Proposal — Steve Klabnik <steve@...> 2011/08/02

I reeeeeealy dislike user comments on documentation. It's one of the

[#386117] Re: Documentation Improvement Proposal — Phillip Gawlowski <cmdjackryan@...> 2011/08/02

On Tue, Aug 2, 2011 at 7:39 PM, Steve Klabnik <steve@steveklabnik.com> wrot=

[#386118] Re: Documentation Improvement Proposal — Steve Klabnik <steve@...> 2011/08/02

> What's wrong with stealing WikiPedia's procedures? The model works

[#386119] Re: Documentation Improvement Proposal — Chris White <cwprogram@...> 2011/08/02

On Aug 2, 2011, at 11:00 AM, Steve Klabnik wrote:

[#386123] Re: Documentation Improvement Proposal — Steve Klabnik <steve@...> 2011/08/02

Apologies, I've just responded to everyone in-line.

[#386231] Brainstorming ideas how to improve Ruby's documentation — Marc Heiler <shevegen@...>

The title is misleading...

42 messages 2011/08/05
[#386233] Re: Brainstorming ideas how to improve Ruby's documentation — "Fred L." <f.linard@...> 2011/08/05

Hello,

[#386235] Re: Brainstorming ideas how to improve Ruby's documentation — Alexander Litvinovsky <alexander.litvinovsky@...> 2011/08/05

What are you talking about? Ruby has a nice docs, railsapi.com for example.

[#386297] Help out with the next version of ruby-lang.org — Magnus Holm <judofyr@...>

https://github.com/rubylang/ruby-lang.org

11 messages 2011/08/07

[#386341] Exceptional Ruby and Metaprogramming Ruby has anyone picked these up? — Kevin <darkintent@...>

I'm thinking of picking up these two books and was wondering if anyone

11 messages 2011/08/09

[#386378] ruby installation — "Momodou J." <modou75alieu@...>

how to implement this in windows :

16 messages 2011/08/09

[#386401] *WHY* does this not work? — serialhex <serialhex@...>

ok, so code:

23 messages 2011/08/09
[#386403] Re: *WHY* does this not work? — "Darryl L. Pierce" <mcpierce@...> 2011/08/09

On Wed, Aug 10, 2011 at 03:52:59AM +0900, serialhex wrote:

[#386404] Re: *WHY* does this not work? — serialhex <serialhex@...> 2011/08/09

On Tue, Aug 9, 2011 at 3:05 PM, Darryl L. Pierce <mcpierce@gmail.com> wrote:

[#386480] Odd regexp behavior — Glen Holcomb <damnbigman@...>

I'm running 1.9.2-p180

16 messages 2011/08/10

[#386506] Distributing Ruby program as a standalone executable (exe) for windows — Michelle Pace <michelle@...>

Hello there,

10 messages 2011/08/11

[#386539] Online tutor for Ruby — T J Pereira <tj5155@...>

I am finding it difficult to apply the RUBY program. Its because i have

18 messages 2011/08/12
[#386541] Re: Online tutor for Ruby — Phillip Gawlowski <cmdjackryan@...> 2011/08/12

On Fri, Aug 12, 2011 at 6:00 AM, T J Pereira <tj5155@tm.net.my> wrote:

[#386637] class inheritance and class constants — Iñaki Baz Castillo <ibc@...>

------------------------

16 messages 2011/08/14

[#386784] Green Shoes v1.0 released — ashbb <ashbbb@...>

Hello, everyone.

15 messages 2011/08/18
[#392062] Re: Green Shoes v1.0 released — Barry Yu <yubarry@...> 2012/01/09

why do I get this error?

[#386796] Searching in a directory — Yu Yu <htwoo@...>

Hello,

21 messages 2011/08/18

[#386893] Gritty Details of super() — luke gruber <luke.gru@...>

Hey guys,

18 messages 2011/08/21

[#386900] Possble bug in Ruby parser (Fixnum#times within "case" statement) — Iñaki Baz Castillo <ibc@...>

Hi, I cannot find an explanation for the following issue so I think it's a =

15 messages 2011/08/21
[#386901] Re: Possble bug in Ruby parser (Fixnum#times within "case" statement) — Ryan Davis <ryand-ruby@...> 2011/08/21

[#386903] Re: Possble bug in Ruby parser (Fixnum#times within "case" statement) — Iñaki Baz Castillo <ibc@...> 2011/08/21

2011/8/22 Ryan Davis <ryand-ruby@zenspider.com>:

[#386920] New to Ruby some problems — jack jones <shehio_22@...>

I am new to Ruby, My mother tongue is C++ .. I have too many problems I

21 messages 2011/08/22

[#386949] Want to get involved with this doc stuff? I'm making it even easier — Steve Klabnik <steve@...>

Hey guys-

9 messages 2011/08/22

[#387058] How the access the values of this result — QAS WM <qaiserwali@...>

I am getting the following as a result of a script I run.

11 messages 2011/08/26

[#387070] overloading methods question please? — jack jones <shehio_22@...>

def do_something(a as Array)

11 messages 2011/08/26

[#387138] String#split resets regex captures variables (Ruby 1.8.7) — Olivier Lance <bestiol@...>

Hi,

10 messages 2011/08/29

[#387196] SAMSUNG to produce "Ruby on Rails in Silicon" System on a Chip — Ilias Lazaridis <ilias@...>

(public draft)

9 messages 2011/08/31

[#387197] Prepend a character to a string in ruby — ruby rails <rubyonrails4me@...>

Hi,

10 messages 2011/08/31

[#387212] GUI programming — Samuel Mensah <sasogeek@...>

Is ruby GUI programming something that will come along as I study ruby

19 messages 2011/08/31
[#387230] Re: GUI programming — Alexey Petrushin <axyd80@...> 2011/08/31

I believe right now it's better to stay with console, there's no Ruby

Re: Numeric#coerce docs are a disaster

From: Eric Hodel <drbrain@...7.net>
Date: 2011-08-02 19:55:07 UTC
List: ruby-talk #386124
On Aug 2, 2011, at 7:30 AM, Markus Fischer wrote:
> On 02.08.2011 14:55, Robert Klemme wrote:
>> On Tue, Aug 2, 2011 at 12:40 PM, 7stud -- <bbxx789_05ss@yahoo.com> =
wrote:
>>> 1) I don't know how coerce works.
>>=20
>> =
http://blog.rubybestpractices.com/posts/rklemme/019-Complete_Numeric_Class=
.html
>=20
> When I read this and the response form Adam:
>=20
> On 02.08.2011 12:32, Adam Prescott wrote:
>> You are free to improve the documentation and open a ticket on =
redmine
>> assigned to Eric Hodel.
>=20
> it reminds me what I just wrote a few weeks ago, no real feedback at
> all: http://www.ruby-forum.com/topic/2168384#1011502 .

Since you posted it to ruby-talk and not to ruby-core (or a ticket) I =
missed it.  In brief, if you think it can be better, file a ticket.

The reason I say "file a ticket" is because I will forget if we only =
talk about it here.  I'm very busy with both work and preparing for the =
Ruby 1.9.3 release so I probably won't have free time available to work =
on these things for a while now.

=46rom your post:

> Well, the problem as I see it is that tutorial-like examples, when you
> have quite some of them, don't really fit well within a discrete =
method
> documentation. It makes it hard for the developer to discover. IMHO =
all
> the examples from Readline.readline and what I've added should be =
moved
> out either into the README or into the Readline module description and
> the actual method documentations should be made more slim. But who to
> make a call for anything here?

If you think the organization of something is poor then file a ticket =
proposing a reorganization.  I agree that it's easier to read when some =
examples are moved up to the top level.

Take a look at the documentation of Net::HTTP or OpenSSL in Ruby =
1.9.3-preview1.  They've been reorganized and improved to show you the =
various ways you can use the two libraries in one place with slimmer =
documentation on individual methods.  I think this is a vast improvement =
over hunting through the 10 or 15 methods you may need to call to get a =
working program, and I think Readline would benefit from a similar =
reorganization.

> When I generate the docs from it, it looks like this
> http://i.imgur.com/e7U5G.png . Ugh. The headings don't suit well and =
the
> source code has no highlighting (in case your wonder: that's FF 5 with
> 150% full-page zoom).


If you think the RDoc HTML output can be better then file a ticket or =
write a new template or generator.  The current default generator, =
Darfkish, was contributed by Michael Granger.  HTML and web browsers =
have advanced quite a bit since it was included so if something nicer is =
built it can be added to RDoc and be made the default.

> If it were me, I'd bow before Robert for doing this great work, ask =
for
> his permission and simply stuff all his wisdom into the docs and let =
the
> world joy on it.

Done!

> My problem with that approach and this here
>=20
> On 02.08.2011 13:26, Adam Prescott wrote:
>> =
http://blog.segment7.net/2011/05/09/ruby-1-9-3-documentation-challenge
>> =
http://blog.steveklabnik.com/2011/05/10/contributing-to-ruby-s-documentati=
on.html
>=20
> is the following: Roberts post includes a and much more widened =
example
> and I'd be all for including it, but it doesn't fit will with how =
rdocs
> are most commonly used currently, that is, one page for all methods. =
If
> documentation for methods becomes to long as I outlined, things get
> noticeably unreadable.
>=20
> I've no further solution, but somehow it strikes me that the whole =
ruby
> documentation misses the next evolutionary step, away from the docs =
only
> generated from the sources to a) possible include much more meta
> documentation (manuals, tutorials, etc.) and b) provide *a*/*the*
> *official* ruby docs, not just class based docs, but also including
> introductory articles etc., e.g. from the existing ruby wikibook and =
so
> on, allowing comments on the docs as others mentioned and what not =
features.

Ruby still needs more of two types of documentation, the manuals, =
tutorials, etc. and the class and method-level documentation of the =
standard library.  Through the efforts of my documentation challenge the =
latter has grown to having =E2=85=94 of the standard library documented =
for Ruby 1.9.3 out of about 15,000 items.  I don't know of anybody =
addressing the former beyond these recent discussion and what's present =
at ruby-doc.org.

> But unfortunately it's lacking a power behind, a group of volunteers =
a)
> providing the technical environment and b) writers. When I look at =
other
> projects, e.g. PHP, the doc team not only provides infrastructure and
> assistance, they're also permanently communicating with the core
> developers to properly document new things for a release, properly
> describe backward compatibility problems (I mean, just look at the =
list
> at http://www.php.net/manual/en/ ).

I became a Ruby committer through submitting documentation patches, and =
anyone can become a committer the same way.  I did a decent job of =
committing documentation patches in a timely manner, but it would be =
great if I could have some extra help.  I don't see any reason why =
people couldn't be both.

> I wish I'd the skills for either forming a basis or writing good docs,
> unfortunately I'm quite un-gifted for the latter (I still try to =
improve
> it and contribute) and I seriously lack ruby-foo or whatnot for the =
former.

For the documentation challenge, writing good documentation was =
most-preferred, but I applied even "poor" documentation patches after =
appropriate editing or expansion.  For every patch I wasn't able to =
directly apply I provided feedback to the submitter.  In total, I think =
only two patches weren't applied out of between 40 and 50, one that =
duplicated an earlier submission and one being a mistaken typo fix about =
the math meaning of a number range like "[0, 1)".

For class and method-level documentation even poor documentation can be =
edited or expanded into something good!  Through feedback even you can =
write good documentation!  Please do not be afraid of rejection, I try =
very hard to avoid rejecting documentation patches.=

In This Thread