[#385051] How to order Structs based on two fields — Iñaki Baz Castillo <ibc@...>

Hi, I've a struct like this:

20 messages 2011/07/01
[#385052] Re: How to order Structs based on two fields — Iñaki Baz Castillo <ibc@...> 2011/07/01

2011/7/1 I=C3=B1aki Baz Castillo <ibc@aliax.net>:

[#385057] Re: How to order Structs based on two fields — Robert Klemme <shortcutter@...> 2011/07/01

On Fri, Jul 1, 2011 at 12:55 PM, I=F1aki Baz Castillo <ibc@aliax.net> wrote=

[#385069] Offering Help — Joe Peric <peric.joe@...>

I'm new to Ruby and I am willing to learn. Anyone need help on a

18 messages 2011/07/01
[#385072] Re: Offering Help — Jeremy Heiler <jeremyheiler@...> 2011/07/01

On Fri, Jul 1, 2011 at 11:43 AM, Joe Peric <peric.joe@gmail.com> wrote:

[#385073] Re: Offering Help — Joe Peric <peric.joe@...> 2011/07/01

Never heard of it, but I'll get right on it. Thanks.

[#385082] Re: Offering Help — Joe Peric <peric.joe@...> 2011/07/02

Just finished this. I had to find some more info on exceptions to get

[#385083] Re: Offering Help — Jeremy Heiler <jeremyheiler@...> 2011/07/02

On Sat, Jul 2, 2011 at 1:39 PM, Joe Peric <peric.joe@gmail.com> wrote:

[#385102] symbol vs string for hash keys — Intransition <transfire@...>

What are the important factors to consider when deciding whether to

12 messages 2011/07/03

[#385160] Fatal Error with Ruby/GTK2, Homebrew, Green Shoes, and OSX Snow Leopard — Timothy Barnes <barnes7td@...>

I posted the below question to the Shoes mailing list and got back the

10 messages 2011/07/09

[#385194] RubyInstaller Extras — Jon <jon.forums@...>

Since 2009, we've been pleased to include Huw Collingbourne's The Book of Ruby with RubyInstaller. Well now, Huw has a newly updated version, and he's published it with No Starch Press.

11 messages 2011/07/12

[#385207] Creating a range of directories — Simon Harrison <simon@...>

I'm wanting to create a range of directories with a prefix, like the

13 messages 2011/07/13

[#385276] Is there a more efficient way to remove data from a string? — Eddie Catflap <catflaporama@...>

Hi

9 messages 2011/07/15

[#385297] Help needed for a new release of text-hyphen — Austin Ziegler <halostatue@...>

I've had folks asking me for a release of text-hyphen that works with

12 messages 2011/07/15

[#385326] Comparing hashes based on their keys — Stefano Mioli <stefano.mioli@...>

Hi list,

13 messages 2011/07/15

[#385342] moving a 1.8.6 install? — Roggie Boone <rogboone@...>

Is it possible to move the gems from a Ruby 1.8.6 install on an (old)

10 messages 2011/07/15

[#385410] Better name for #zip_with — Intransition <transfire@...>

Any ideas for a better name for:

13 messages 2011/07/18

[#385452] Ruby + USB + CCTV Camera Driver? — "Bob Carpenter." <rgc3679@...>

I want to write a Ruby driver that handles the feed from A CCTV camera.

23 messages 2011/07/18
[#385459] Re: Ruby + USB + CCTV Camera Driver? — William Rutiser <wruyahoo05@...> 2011/07/18

On 2011-07-18 1:00 PM, Bob Carpenter. wrote:

[#385461] Re: Ruby + USB + CCTV Camera Driver? — "Bob Carpenter." <rgc3679@...> 2011/07/18

William Rutiser wrote in post #1011466:

[#385462] Re: Ruby + USB + CCTV Camera Driver? — Hassan Schroeder <hassan.schroeder@...> 2011/07/18

On Mon, Jul 18, 2011 at 11:51 AM, Bob Carpenter. <rgc3679@yahoo.com> wrote:

[#385464] Re: Ruby + USB + CCTV Camera Driver? — "Bob Carpenter." <rgc3679@...> 2011/07/18

Hassan Schroeder wrote in post #1011472:

[#385471] Re: Ruby + USB + CCTV Camera Driver? — Hassan Schroeder <hassan.schroeder@...> 2011/07/18

On Mon, Jul 18, 2011 at 12:58 PM, Bob Carpenter. <rgc3679@yahoo.com> wrote:

[#385474] Re: Ruby + USB + CCTV Camera Driver? — Phillip Gawlowski <cmdjackryan@...> 2011/07/18

On Tue, Jul 19, 2011 at 12:18 AM, Hassan Schroeder

[#385477] Re: Ruby + USB + CCTV Camera Driver? — "Bob Carpenter." <rgc3679@...> 2011/07/19

Phillip Gawlowski wrote in post #1011503:

[#385509] A beginner question. — "Cajus A." <cajus_@...>

Hi i'm trying to write and example program where you speak to a

12 messages 2011/07/19

[#385542] Splitting strings — Ryan Mckenzie <ryan@...>

Hi all,

18 messages 2011/07/19

[#385565] error building ruby p290 — Dev Guy <devguy.ca@...>

I get the following build error on my Linux box while trying to build

12 messages 2011/07/20

[#385629] Are Job Ads OK? — Lee Hughes <lee@...>

Is it OK to post Ruby job ads on this forum?

12 messages 2011/07/21

[#385847] String manuplation example — kotin 76 <kotin76@...>

Hi,

15 messages 2011/07/27

[#385860] Counting lines of code in a ruby code file ignoring method code lines in the process — Harry Truax <htruax@...>

Hello,

8 messages 2011/07/27

[#385936] Help in Pointer — Tridib Bandopadhyay <tridib04@...>

Hello

18 messages 2011/07/29

[#386012] Ruby a "4th generation language"? Credible sources? — Albert Schlef <albertschlef@...>

I've noticed that Wikipedia says that "C#, Java" are 3'rd generation

13 messages 2011/07/31

[#386050] system stack error in ObjectSpace.each_object — luke gruber <luke.gru@...>

Hey guys, I'm just starting to mess around with metaprogramming in Ruby,

14 messages 2011/07/31
[#386052] Re: system stack error in ObjectSpace.each_object — Josh Cheek <josh.cheek@...> 2011/07/31

On Sun, Jul 31, 2011 at 4:29 PM, luke gruber <luke.gru@gmail.com> wrote:

[#386055] Re: system stack error in ObjectSpace.each_object — luke gruber <luke.gru@...> 2011/08/01

> Typically, SystemStackError is due to recursing for too long, perhaps I

[#386058] Re: system stack error in ObjectSpace.each_object — Robert Klemme <shortcutter@...> 2011/08/01

On Mon, Aug 1, 2011 at 3:56 AM, luke gruber <luke.gru@gmail.com> wrote:

Re: Ruby Readline - and why ruby can learn from python

From: Justin Collins <justincollins@...>
Date: 2011-07-18 21:19:22 UTC
List: ruby-talk #385468
On 07/18/2011 01:02 PM, Marc Heiler wrote:
> Lately I wanted to have<TAB>  completion work for some of my scripts
> where I use readline. For some reason, this was easier in bash with the
> command "complete" than in pure ruby, and I wondered about this ...
>
> Now then, I looked at Ruby's docu about Readline:
>
>    http://ruby-doc.org/stdlib/libdoc/readline/rdoc/index.html
>
> I guess this is the official docu about Readline.
>
> I make it to the point:
>
> - If you call this "documentation" then you are like tossing cold water
> over the face of someone new to ruby.
>
> This is not documentation.
>
> This is really more of a bad, horrible joke. It is so horrible that the
> better service to everyone would be to REMOVE the official documentation
> and let people google for Readline docu in Ruby. Because this way, they
> are likely to find A BETTER DOCUMENTATION (save for the API perhaps, but
> you could just display the source).
>
> I did search. I looked around a bit and indeed, there is elegant and
> nice documentation about Readline. For example, here:
>
>    http://bogojoker.com/readline/
>
> With explanations and examples.
>
> This should become a standard. It does not contain enough information of
> course, but still, it is MUCH MUCH better than the crappy official
> documentation.
>
> I am still struggling to find how to EASILY have tab complete working
> without getting my head diluted into procs and why I'd need them anyway.
> (Yes, the actual example is more complicated than that, but every few
> months later I need it, and when I look at the crappy documentation for
> Readline I am pulling at my hair.)
>
> I love ruby. From a design point, it is much better than Python.
>
> HOWEVER, please compare the python documentation about Readline:
>
>    http://docs.python.org/library/readline.html
>
> It comes with working examples! It comes bundled in a BIG, FAT "online"
> book version. THIS is how documentation should be. Really, this is where
> ruby could learn from python.
>
> Even php allows at least user added hints on how to best use this!
>
> Why is the Ruby world stuck in the year 1999 when it comes to
> documentation please? Throw rdoc away. Entirely. Remove it. Dismiss it.
> Tear it apart. This tool is doing nothing other than giving people the
> WRONG idea how to DOCUMENT things.
>
> Look at RoR too:
>
>    http://api.rubyonrails.org/
>
> Sorry, but this is not documentation. This is called a MESS.
>
> It is time to find a better alternative, FOR THE SAKE OF PEOPLE WHO LIVE
> IN THE WWW YEAR 2011.
>
> And if you don't want to listen to my rant while I dig painstakingly
> into the Readline crap, then please, at least learn from python in how
> to properly document stuff. I gave you the link above to python, dig
> around and try to understand why python is able to document itself
> properly yet ruby fails like a pathetic newbie here.
>
> It's for the better for all of us if the docu becomes better, honestly.
>
> But not in little steps. It is time to make the documentation adhere to
> standards that try to look into the future - because right now, rdoc is
> stuck in 1999. And in ten years, it will have reached ... the standard
> of 2001 ...
>

I know you already wrote a lot, but could you clarify what is better 
about the Python documentation? I looked at the link and the content 
looks extremely similar to the ruby-doc link. There is a brief 
description, some examples, and documentation of the methods.[1] In 
fact, the ruby-doc page appears to have more examples than the Python page.

Thanks,
Justin

(Sidenote: how weird is this?
   ruby-doc: "This module defines a number of methods to facilitate 
completion and accesses input history from the Ruby interpreter"
   python: "The readline module defines a number of functions to 
facilitate completion and reading/writing of history files from the 
Python interpreter." )

[1] To be absolutely clear, I'm talking about 
http://ruby-doc.org/stdlib/libdoc/readline/rdoc/classes/Readline.html 
and http://docs.python.org/library/readline.html)

In This Thread