[#1215] Tk widget demo; English Tk docs?; Java 1.2 Swing — "Conrad Schneiker" <schneiker@...>
Hi,
[#1218] Trivial FAQ bug — Dave Thomas <Dave@...>
[#1229] A vote for old behavior — Dave Thomas <Dave@...>
[#1232] Any FAQ requests, updates, ... — Dave Thomas <Dave@...>
[#1233] Singleton classes — Dave Thomas <Dave@...>
[#1263] Draft of the updated Ruby FAQ — Dave Thomas <Dave@...>
[#1307] Ruby/GTK 0.23 released — Hiroshi IGARASHI <igarashi@...>
Hi all,
From: Hiroshi IGARASHI <igarashi@ueda.info.waseda.ac.jp>
From: "Conrad Schneiker" <schneiker@jump.net>
On Fri, Feb 18, 2000 at 09:37:27PM -0500, Yasushi Shoji wrote:
[#1322] FAQ: Ruby acronyms — "Conrad Schneiker" <schneiker@...>
In the spirit of TABWTDI (there are better ways to do it), I'd like to
[#1341] Vim syntax file — Mirko Nasato <mirko.nasato@...>
Hi,
On Mon, Feb 14, 2000 at 05:44:39PM +0100, Mirko Nasato wrote:
[#1354] Say hi (bis) — Pixel <pixel_@...>
hi all,
[#1355] nice sample for functional stuff — Pixel <pixel_@...>
what about having map in standard (and map_index too)?
[#1373] Ruby Language Reference Manual--Glossary — "Conrad Schneiker" <schneiker@...>
I was going to print the Ruby Language Reference Manual when I noticed that
[#1376] Re: Scripting versus programming — Andrew Hunt <andy@...>
Conrad writes:
[#1379] Re: Yield — Andrew Hunt <andy@...>
>From: "Conrad Schneiker" <schneiker@jump.net>
[#1384] Re: Say Hi — mengx@...
My suggestion was to try to find a more comfortable method name (to me, and
[#1392] Re: Some Questions - Parameterised Types / Invariants — Andrew Hunt <andy@...>
>1. Parameterised Types / Template Classes
[#1398] Bignum aset — Andrew Hunt <Andy@...>
[#1488] Discussion happens on news.groups — Clemens Hintze <c.hintze@...>
Hi,
[#1508] Ruby/GTK and the mainloop — Ian Main <imain@...>
Hello Ian,
On Wed, Feb 23, 2000 at 02:56:10AM -0500, Yasushi Shoji wrote:
[#1516] Ruby: PLEASE use comp.lang.misc for all Ruby programming/technical questions/discussions!!!! — "Conrad Schneiker" <schneiker@...>
((FYI: This was sent to the Ruby mail list.))
From: "Conrad Schneiker" <schneiker@jump.net>
[#1528] ruby <=> python — Quinn Dunkan <quinn@...>
Hello! I'm new to ruby-talk, and mostly new to ruby. I'm making a document
[#1551] Ruby thread scheduling buglet — Ian Main <imain@...>
[#1569] Re: Ruby: constructors, new and initialise — Yukihiro Matsumoto <matz@...>
The following message is a courtesy copy of an article
[#1591] Certain char's not recognized by "." in regex? — Wes Nakamura <wknaka@...>
[#1592] Race condition in Singleton — Dave Thomas <Dave@...>
[ruby-talk:01274] Re: Draft of the updated Ruby FAQ
Clemens Hintze <clemens.hintze@alcatel.de> writes:
> I think, if it is clarified with matz you should change/correct also
> parts of direct quotes of him. And he seems to agree to change it as
> he has answered in [ruby-talk:01270].
If matz asks I'm more than happy to.
> But then, is it important for the newbie/user to know, that a symbol
> is created? What can I do with a symbol? Better not to mention it
> here? Do not forget I am trying to write from a user's point-of-view.
See the new example.
> I, for example, cannot imagine what you mean by saying
> '(main)'? I know, however, what you mean with 'toplevel' ;-)
That's why I used the two words ;-). However, see the new example.
> The last sentence beginning with 'while, until, and ...' could also be
> attached above the examples. So seeing the examples, I would have
> already read the whole description. I do not like, that a description
> is spread thru many sections. Only if it is a complex one, that would
> be appropiate, IMHO.
I've tried to illustrate each section with its own examples. Do people
like that, or would you prefer a larger block of text and then a large
example?
> You have mentioned here three ways! But if I see this 'Proc.new.call'
> thingy I feel you should also mention the 'proc' and 'lambda'
> constructs. Then we have five ways and more examples ;-)
That's not a new way--it's simply an alias. They're already in the
last of the three examples.
> 6.6 What is a singleton class?
>
> Has all this about 'anonymous classes' to be mentioned here? I feel
> your second example should be called something like 'object
> extension'. That there are used 'anonymous classes' used to do that,
> is regardless for the user/newbie. He even cannot find it simply out,
> as 'anchestors' would not show this 'anonymous class'.
I think it's key to understanding the construct that it creates a new
subclass of the object's class. Otherwise, what's the difference
between this and 'def foo.fff'. That's why the example code makes use
of an instance variable,
Whether or not 'anonymous' adds to the description is a matter of
taste. Personally, it answers a question I would otherwise have had:
"where do you specify the name of this subclass?". However, I'm happy
to change the wording if others think it's not clear.
Once again, thanks for all your trouble.
There's a new version of the FAQ posted at
http://www.pragprog.com:8080/rubyfaq
Regards
Dave