Talk:Ruby (programming language)

From Wikipedia, the free encyclopedia

Contents

[edit] POV issues

Some of the text of this article seems non-NPOV. For example "clean syntax" and "obvious syntax" seem rather subjective. It doesn't bother me too much, but someone who is familar with the language (and not biased :-) ) might want to NPOV the text. --Frecklefoot 19:08 16 May 2003 (UTC)

In fairness, and with considerable experience of using Ruby after unhappy experiences with many other programming languages, I can only concur with those representations. It is syntactically very clear and also extremely obvious to anyone with an understanding of OO concepts. --Sjc 13:12, 25 Nov 2004 (UTC)

[edit] Hello World!

  1. "Hello World" is already in the article, under "Blocks and iterators".
  1. I disagree about using "Hello World" in every programming language article because it is considered a standard example. It should especially be avoided for a high level language like Ruby in which it consists of a single, straight-forward expression. Any non-trivial example, say a program that (for example) constructs and uses a hash, involving the creation of a string object and printing it to the standard output, provides all information that can be found in a "Hello World" program, and much more.

The question is not whether it can be included in the article, but whether there are not better ways to use the same space. Note also the existence of the Hello world program page, which exists to cover this "standard example". --Fredrik | talk 11:57, 3 May 2005 (UTC)

I'm confused. What change are you proposing? To remove the existing "Hello World" references in the article (under "Blocks...")? I'm all for it, since the code under that section doesn't run by itself anyways (blocks don't work out of the method calling context) and thus can be confusing. And if you want to change "Hello world" to "This is a block", I'd be happy too. Other than that, there aren't another other "Hello World"s in the article, so what exactly were you disagreeing with?
There was a second "Hell World" example. See the article history. --Fredrik | talk 23:45, 13 May 2005 (UTC)
Use the fibonacci numbers. --84.152.107.86 14:23, 20 December 2005 (UTC)

[edit] Old talk

[edit] Name

Exact copy of entry posted June 12, 2001 8:02 am by Stephen Gilbert.

Copied to change name from "Ruby language" to "Ruby programming language" to match other language names.

For the record, I had little to do with this article, other then the editing. The original editing history was pruned. --Stephen Gilbert

[edit] Swift creation

So this guy created the language in one day? Cool. --AxelBoldt

Of course not :) --Taw

[edit] Section removal proposal

That section dealing with mailing lists should be removed, I think. It is not encyclopedic, and most other languages do not have mailing lists as a section. Plus, what does it really inform the reader about? --Maru 05:19, 6 August 2005 (UTC)

I was going to do it, but I checked whether this had already been debated before. Done. --Chealer 02:28, 29 September 2005 (UTC)


[edit] Compiling

I'm not sure that Ruby has ever been compiled yet. AFAIK JRuby is a port of the interpreter to java byte code, but does not compile the underlying ruby? --User:TomCounsell

Correct. But even as an interpreted language it is blindingly fast. --Sjc 13:12, 25 Nov 2004 (UTC)
I like Ruby, but one thing it is not, is fast. 146.145.251.68 17:04, 17 July 2006 (UTC)
So there's agreement that no Ruby compilers exist? I plan to remove the misleading claim: "It was originally designed as an interpreted language, though in its JRuby implementation it may be compiled." --Ds13 07:31, 19 Feb 2005 (UTC)
Yes, I've done some checking and it should probably be removed. There are a number of projects working on compiler type entities for ruby, but none that are beyond beta yet. --TomCounsell
YARV contains a bytecode compiler. --drbrain 19:00, 4 September 2006 (UTC)

There are several projects aimed at creating a Ruby --> Parrot bytecode compiler, namely Ruth, and Ripper. Can't find much on either. Ruby 2's official implementation will use bytecode, see http://wiki.rubygarden.org/Ruby/page/show/Rite Wootery 18:34, 30 October 2006 (UTC)

[edit] Implementations

Ruby has three main implementations: the official Ruby interpreter, which is the most widely used, JRuby, a Java-based implementation, and RPG Maker XP, a Windows XP program used to create role-playing games.

RPG Maker XP is not a Ruby implementation, although it includes one (RGSS). My understanding of the main Ruby implementation's license is that commercial products like RPG Maker can include the interpreter, provided that they include either the source code or a pointer to ruby-lang.org. Does anyone have this game, and if so, can you tell me whether RGSS is a new implementation? - Beinsane 05:44, 6 October 2005 (UTC)

And to answer my own question...the RPG Maker website [1] has a copyright notice crediting Matsumoto for Ruby. The article will be edited. - Beinsane 05:47, 6 October 2005 (UTC)
also the help-file of the program carries a link to ruby-lang.org on the first (root) page about RGSS in the About This Document section.

[edit] Criticisms and Possible surprises

An anonymous user has come and turned 'Possible surprises' into 'Criticisms and Possible surprises'. If you read the section as it is now, the new items in the list do not really correspond to the list description "some features differ from languages such as C or Perl:". Jogloran 22:25, 8 February 2006 (UTC)

Ruby suffers from unconventional and below-average release management. First, Ruby version numbers are used differently from most other projects. Version 1.8.2 is not compatible with version 1.8.4. With Ruby, point releases are roughly equivalent to major releases of other projects. And since there is only 3 digits in the version number, there are no bugfix releases such as 1.8.2.1--instead, users must rely on snapshots of the repository for which there is no guarantee of backward compatibility. Another example is the release of Ruby 1.8.3 which broke Ruby's most well-known and popular application: Ruby on Rails.

"Omission of parentheses around method arguments may lead to unexpected results." -- like what? First I've heard of it. The fact that get/set methods are indistinguishable from fields is a feature, not a bug. Metamatic 20:46, 8 May 2006 (UTC)

I got some clarification from Matz. The issue is with methods that take multiple arguments, and that's what may be disallowed in the future. I've reworded accordingly. Also, I've never seen a book recommend omitting brackets for multi-argument methods, so I've tightened that wording too. Metamatic 20:49, 16 May 2006 (UTC)
In an expression like "puts Array.new 5, nil" the receiver of nil is ambiguous. In future versions such an expression will cause a syntax error. With "Array.new 5, nil" the receiver is not ambiguous so parentheses are not necessary. --drbrain 11:54, 18 June 2006 (UTC)

[edit] Logo

I can't find an official Ruby logo at this point. What do you all think?

I should think that the closest thing Ruby has is the cartoon foxes. But they're more mascots than a logo. :) Quamaretto 20:47, 23 February 2006 (UTC)
Ruby doesn't have an official logo. --drbrain 10:09, 18 June 2006 (UTC)
We should get license permission to use the logo from the redesigned Ruby-lang page. I can't imagine it would be hard to get permission but I couldn't find any obvious license posted so for now it's under copyright. 208.39.128.10 18:02, 23 September 2006 (UTC)

[edit] Ruby Strongly typed?

Anybody cares to join in and explain: Template_talk:Type_system_cross_reference_list#Ruby_Strongly_typed.3F?

--Krischik T 07:29, 24 February 2006 (UTC)

Ruby is strongly and dynamically typed, it does not have implicit type conversions like C, which is weakly typed. --drbrain 10:14, 18 June 2006 (UTC)
Don't just point to a wiki page which points out that "there is no commonly agreed-upon meaning for 'strongly typed language'" and assume the case is closed. Almost all of the points on Strongly-typed programming language are describing the opposite of Ruby. The only ones possibly matching are:
  • The absence of ways to evade the type system. Such evasions are possible in languages that allow programmers to get at the underlying representation of values (ie, their bit-pattern).
Well, as Ruby has a highly flexible type system by design there are really no ways to evade it.
  • A complex, fine-grained type system with compound types.
Not sure here.
In conclusion, I don't know where the idea comes from that Ruby is a Strongly-typed programming language. There might be other definitions of Strongly Typed, but Wikipedia's definition does not match at all. --217.235.238.230
Citations for Ruby's strongly-typed'ness:
Hope this helps. --Kusunose 03:39, 13 December 2006 (UTC)
So Matz says that Ruby is strongly-typed. This of course should not be ignored, but the problem remains that Strongly-typed programming language does not match Ruby at all. How to proceed from here? --62.225.37.69

[edit] POV Issue

The article states:

The phrase did not originate with Matz and, generally speaking, Ruby may more closely follow a paradigm best termed as "Matz's Least Surprise", though many programmers have found it to be close to their own mental model as well.

In other words, Ruby doesn't follow the principle of least surprise; it's just Matz's idea of least surprise. That sounds seriously like a jab at Matz and POLS.  DavidDouthitt  (Talk) 23:25, 2 March 2006 (UTC)

Matz repeatedly said he designs Ruby in a way that makes him surprise least; for example, see [2] and [3] --Kusunose 05:44, 3 March 2006 (UTC)

[edit] Unicode and UTF8 issue

In the article there is the statement

 Ruby currently lacks full support for Unicode, though it has partial support for UTF-8.

I wonder what this means for Ruby 1.8.4 (the current stable) and 1.9 (the current development release)? An example where a file in UTF8 is read, processed and written out again would be helpful. Hannes Hirzel, 3 June 2006

Ruby 1.8's regular expression engine handles multibyte characters correctly depending on what you set $KCODE to. By default it is in ASCII mode. The string library generally treats characters as raw bytes and ignores character encodings (its been a while since I've looked, I seem to recall one or two methods that check for multibyte characters). Ruby 2.0 will contain more multibyte and unicode string features, but the exact nature of those features have not been decided. --drbrain 11:51, 18 June 2006 (UTC)

[edit] Bytecode or not

I have read on the bytecode page that Ruby does not use bytecode in the current implementation. Is is true? I believe it is no longer the case. Acaciz 18:04, 3 June 2006 (UTC)

Ruby 1.8 walks an AST. --drbrain 10:17, 18 June 2006 (UTC)

[edit] POV issue with "surprises" section

The section "Gotchas and possible surprises" section is POV, starting with its section name. It would be more accurately titled "Possible surprises for C and Perl programmers", but then that's still POV and getting away from what an objective, non-tutorial encyclopedic article should be. I think removal of this section should be considered. It's certainly useful information (as are reviews and tutorials), but that doesn't mean it belongs in an encyclopedia. Anyone else agree? --Ds13 21:32, 15 June 2006 (UTC)

The first four bullet points could be moved into the examples section. I believe the method parentheses problem refers to an expression like "puts Array.new 5, nil", where the method that should receive nil is ambiguous. "puts 5, nil" is never ambiguous. --drbrain 10:41, 18 June 2006 (UTC)

[edit] Citing The Computer Language Shootout Benchmarks

This article links to the The Computer Language Shootout Benchmarks, which is not a quality reference for Ruby's performance problems.

The Alioth benchmarks exercise features that are seldom used in real-world Ruby like heavy recursion or enforcing use of a pure-ruby random number generator in the fasta benchmark instead of the built-in random number generator, overly penalizing Ruby's performance. Also, some benchmarks do not contain properly optimized Ruby.

In some areas Ruby is slightly slower than Perl or Python, but in other areas it is faster. The Alioth benchmarks are overly pessimistic due to the artificial restrictions they impose.

I believe this citation should be removed until a proper reference can be found. --drbrain 22:16, 18 June 2006 (UTC)

[edit] Change of Hash keys from strings to symbols by KMeyer (Jul 1)

KMeyer made some changes on July 1st to the hash examples. Rather than, say, { 'a' => 'b', 'c' => 'd' }.. it has become { :a => 'b', :c => 'd' } .. While the symbol syntax is now becoming more popular, I feel this is a poor demonstration of hash tables generally since readers may be confused as to why, say { :my string here => 'x' } doesn't work. Symbols have a prescribed purpose, and in a general hash table, they are not necessarily usable as keys. --Coop 14:27, 2 July 2006 (UTC)

I agree. At the very least it should show that a basic hash maps keys (which are strings, even if you use symbols) to a value (strings, symbols, ints, or whatever else you want). Maybe an example such as: {'a' => 5, 'b' => 'string', :c => 'other_string'}? --Luminousbit 17:01, 8 August 2006 (UTC)
You can use any object you like as a Hash key in Ruby. On occasion I've used Time, Array, Symbol, String, and Integer and even my own Objects. Using a Symbol is more space and time efficient than using a String key because the there is only one instance of a Symbol and the #hash for a Symbol is an O(0) operation and is prefered for these reasons. --drbrain 19:11, 4 September 2006 (UTC)

[edit] Links clean-up?

Can someone clean up the external links? It's so long and disorganized that it's practically useless. Just 5 or so really good introductory links would be ideal. Programmers know how to use google. 146.145.251.68 17:06, 17 July 2006 (UTC)

I think a link cleanup is a great idea; in fact, that's the reason I came to the talk page. Consider this advance notice of a cleanup:
I am planning to remove a bunch of links from the External Links section based on Wikipedia's policy on External links. I don't want to remove all links, but I feel that the external links section is quite bloated and I would like to see it slimmed down a bit; Wikipedia is not meant to be a collection of outside links. If you have a strong feeling about why a particular link should or should not be included, speak now. Please refer to the Wikipedia policy on external links in your arguments. Zukeeper 01:59, 18 July 2006 (UTC)
This has been longstanding and I am now going to categorize the links. Help is needed. --Herraotic 22:37, 2 September 2006 (UTC)
May the deliberations begin. To note before hand I know that some links may not entirely fit under the category I chose but I don't have time to specify where each should be. I hope you all take care of it :D --Herraotic 23:00, 2 September 2006 (UTC)
Thanks. I removed some sketchup stuff, spams, and also did a little shuffling. Why are people obsessed with Sketchup? 208.39.128.10 18:12, 23 September 2006 (UTC)

[edit] Documentation

Would it be worth having a short mention of documentation for Ruby? Matz has stated that the documentation for Ruby is poor. The only up to date english manual that exists is the Pickaxe (Programming Ruby - The Pragmatic Programmer's Guide 2nd Ed.). I think this would be useful information to anyone reading the article that is looking to find more detailed information on the language. Maybe this ties into the links clean-up discussed above. JRavn 20:40, 21 July 2006 (UTC)

I have referenced to some Ruby documentation and also put major learning links under Learning Ruby. --Herraotic 23:01, 2 September 2006 (UTC)

[edit] Requested move

Ruby programming languageRuby (programming language) – Conformance with WP naming conventions LotLE×talk 22:54, 1 September 2006 (UTC)

The following discussion is an archived debate of the proposal. Please do not modify it. Subsequent comments should be made in a new section on the talk page. No further edits should be made to this section.

The result of the debate was move as outlined. -- tariqabjotu 02:43, 7 September 2006 (UTC)

Note: This poll has been transcluded onto the talk pages of a number of individual programming languages, but is in fact a subpage of Wikipedia talk:WikiProject Programming languages. When you comment, please note that this survey is for multiple programming languages, not just the one you saw it on.

Some editors have proposed a general rename of articles named with the pattern "FOO programming language" to the pattern "FOO (programming language)". Please note that this poll only is applicable to those programming languages whose names alone would introduce ambiguity. For example, programming languages such as Java and C , whose names alone are ambiguous, would be at Java (programming language) and C (programming language), respectively. Unique names such as Fortran and COBOL, should remain at their respective simple names.

For instructions on how to add a poll participation request to additional applicable article talk pages, please see: Wikipedia talk:WikiProject Programming languages#Poll procedure

Please add "* Support" or "* Oppose" followed by an optional brief explanation, then sign your opinion with ~~~~

[edit] Voting

  • Abstain Support - I initially abstained because I just wanted to get a procedure rolling. Looking at the first few comment, I support the rename. As with other editor, I only want this where ambiguity exists in the name: e.g. for "Python" but not for "Perl". Also, something like "Python programming language" would still redirect to "Python (programming language)" under the proposal, so existing links would not break. LotLE×talk 22:32, 1 September 2006 (UTC)
  • Support - However, I would object to specifying "programming language" anywhere in the title, as parenthetic remark or not, if the name of the language itself does not have any ambiguity issues. For example C programming language should change to C (programming language) (since C is already taken), but Fortran should stay at Fortran. --Serge 23:24, 1 September 2006 (UTC)
  • Support - originator of the request; it would also meet the common names policy and also meet the disambiguation guideline. atanamir 23:32, 1 September 2006 (UTC)
  • Oppose. The convention has been "<name of language> programming language" for quite a while and I don't think it helps by changing it now. There are already redirects in place for "<name> (programming language)" and it would only add more work to move them all there. Also, it goes against conventions in other media. In books related to programming on the copyright page where it sometimes has sorting information for the book many books say "Computers & Internet - <name> programming language I. Title" or something similar. - DNewhall 23:32, 1 September 2006 (UTC)
  • Oppose. To quote Wikipedia:Disambiguation, "When there is another word (such as Cheque instead of Check) or more complete name that is equally clear (such as Titan rocket), that should be used.". It is undeniable that the "C programming language" is a widely-understood name, not just a description. There's a reason K&R's book is called The C Programming Language rather than C, a Programming Language. Diverse examples from other areas include French language, Titan rocket, sticking plaster, bread roll, contract bridge. What makes programming languages different from these topics? Deco 23:44, 1 September 2006 (UTC)
    • If those articles were named like the programming languages are currently, they would have been something like sticking plaster dressing, bread roll food, and contract bridge card game. Titan rocket, in fact, is a redirect to Titan (rocket family). The natural languages are a slightly odd exception to the normal convention, but i'm not a linguist, and not about to argue with them. (I do know, however, that many non-English Wikipedias use the normal (parenthesized) disambiguation convention for natural languages.) --Piet Delport 13:40, 2 September 2006 (UTC)
      • Apologies for the bad example - Titan rocket was moved since it turned out to be a rocket family, but others such as Angara rocket were not. The controlling question here is whether "C programming language" is a "more complete name" for C. I argue that it is, and so standing guidelines strongly support the current name. Deco 10:12, 3 September 2006 (UTC)
        • I would argue that isn't. You can say "I play contract bridge" and "I use C", but not "I use C programming language". You can expand the names into noun phrases, as in "I play the contract bridge card game" and "I use the C programming language", but in both cases "the * card game" and "the * programming language" are not part of the name itself, anymore. --Piet Delport 06:04, 4 September 2006 (UTC)
          • The presence or absence of a leading article is not a reliable indicator of whether it's a name or not, as indicated by French language, unless you wish to expand this proposal to move X language -> X (language) as well. Deco 06:28, 4 September 2006 (UTC)
            • Definitely not something i'm interested in pursuing; let the linguists and editors involved with natural languages worry about their own naming convention. --Piet Delport 12:09, 4 September 2006 (UTC)
  • Support - due to its name being "Ruby". --Yath 01:31, 2 September 2006 (UTC)
  • Support - this is the standard way that most Wikipedia articles are named. Use the common name and disambiguate appropriately using parentheses when necessary. --Polaron | Talk 01:43, 2 September 2006 (UTC)
  • Oppose - For the same reasons as DNewhall. Chris Burrows 02:11, 2 September 2006 (UTC)
  • Oppose — Per Deco, I don't see how adding parentheses to an article title which is already clear is an improvement. --Craig Stuntz 02:47, 2 September 2006 (UTC)
  • Support -- Crypotography has had much the same problem for some time. It has adopted the "<topic> (cryptography)" approach which has worked well. Not elegant perhaps, but ... ww 05:20, 2 September 2006 (UTC)
  • Oppose — Either way, there should be a second link so that both "C (programming language)" and "C programming langage" produce the C article. My main reason for opposing is that it isn't really consistent with the new "C programming language, criticism" page that was spun off the main C article; what would that name turn into? By the way, the official standard name is "programming language C", but to me that sounds too much like "PL/C" which would be wrong. Deco's remark is quite right. — DAGwyn 07:56, 2 September 2006 (UTC)
  • Comment. This proposal is different from the original proposal, found here, which is now understood as having unanimous consensus in favour. Please do not interfere with the original proposition by misrepresenting it and opening a straw poll here, which can only serve to undermine the usefulness of the original proposal. It would have been much better to simply post a link. - Samsara (talkcontribs) 09:40, 2 September 2006 (UTC)
The original proposal seems pretty wacko to me, and I don't see any evidence of a consensus. As I understand it, this current section is not a "straw poll", but a genuine attempt to determine whether or not to move the C article to a new name, independently of whether that wacko proposal is accepted. — DAGwyn 09:53, 2 September 2006 (UTC)
  • Oppose - As per Deco, if syntactically correct name is enough for disambiguation, it should be preferred. And also, without parentheses it's more pythonic (readability counts). Samohyl Jan 10:24, 2 September 2006 (UTC)
  • Strong Support — The current convention is at odds with the rest of Wikipedia, and as cumborsome as it would have been to have things like Quicksilver novel, Manowar band, and Darwin operating system. --Piet Delport 13:28, 2 September 2006 (UTC)
  • Support. Needs disambiguating, and the name seems to be to be currently misleading. --maru (talk) contribs 19:25, 2 September 2006 (UTC)
In what way is "C programming language" misleading? I can't think of a more natural title for such an article. — DAGwyn 05:48, 4 September 2006 (UTC)
  • Support. Those opposing often Some of those opposing assume that the poll is about deleting the "X programming languages" links - this is not correct. Nor is the intention to move names which are unambiguous, such as Fortran. Aaron McDaid (talk - contribs) 23:06, 2 September 2006 (UTC)
    • For the record, I do not make either of these assumptions, and continue to oppose on the stated grounds. Deco 10:10, 3 September 2006 (UTC)
      • I didn't intend to imply that there weren't other reasons for opposing. Thanks for pointing that out Deco. Aaron McDaid (talk - contribs) 10:33, 3 September 2006 (UTC)
        • Don't worry about it - I appreciate your clarification that these are not valid grounds for opposition. Deco 10:38, 3 September 2006 (UTC)
  • Support per Piet Delport. -- Earle Martin 23:35, 2 September 2006 (UTC)
  • Support per Earle Martin. -- Fredrik Johansson 12:54, 3 September 2006 (UTC)
  • Support per Piet Delport. – Smyth\talk 14:33, 3 September 2006 (UTC)
  • strong support. Piet Delport puts it well. Programming language articles should be disambiguated the same way that other Wikipedia articles are. brighterorange (talk) 18:15, 4 September 2006 (UTC)
  • EMPHATIC Support I've wanted this to happen for a long time now. Per Piet Delport. RN 10:34, 5 September 2006 (UTC)

[edit] Discussion

[edit] Response to DNewhall's comment

In order to reduce clutter in the voting section, i've deicded to respond to DNewhall's vote here. If you're afraid of the amount of work it would take to move the articles, I can move most of them and i'm sure there are other editors willing to take up the task. Also, most books about programming languages simply have the title or common name of the programming language as the title of the book -- the Wrox series uses "Professional PHP" or "professional Java", not "professional PHP programming language" or "professional Java programming langauge". Many of the books I have also have the sorting information as "Computers -- Programming languages -- X," where X is the programming language. atanamir 23:36, 1 September 2006 (UTC)

The main issue is not that I'm afraid of the work but that it'll be a lot of work with next to no perceived benefit. Both "Euphoria programming language" and "Euphoria (programming language)" go to the same page and I (and others apparently) fail to see how that is an improvement over the current convention. The text is exactly the same, you're just adding parentheses. No one is going to get confused about the lack of parentheses (also remember that the names with parentheses already have redirects in place). Is "<name> (programming language)" a more correct title for the article? Arguably. Is it worth the effort of moving all the pages over from their perfectly understandable title to a title that already has a redirect in place for it? No. - DNewhall 16:10, 2 September 2006 (UTC)
I think you misunderstand the point of stylistic consistency on Wikipedia. Any one article in isolation would be fine under either convention; in fact, if the project was only the one article on, e.g. "C programming language" there would be no contrast with all the other uses of parens for disambiguation. But if WP (or some subset) was prepared for print or other syndication, having relatively consistent stylistic choices helps a lot (article naming is, of course, just one small issue among many others, of course). The work involved in a rename would, obviously, be a tiny fraction of the work involved in discussing the question, so that is "vanishingly insignificant". LotLE×talk 16:42, 2 September 2006 (UTC)
When it comes to C, we need to clear and distinct names for the articles on the programming language article and for the book. C (programming language) and The C Programming Language (book) are those two names. They are unambiguous and (or is that because?) they conform with the Wikipedia standard. Anything else should be a redirect to one or disambig page to both. 'C programming language' should redirect to the language and 'C Programming Language' to the book or a disambig page. The existence of a book called 'The C Programming Language' is actually an argument in Support. Aaron McDaid (talk - contribs) 12:49, 4 September 2006 (UTC)
... Appending to own comment ... It's never referred to directly as 'C programming language'. It's always 'C' or 'the C programming language. Note the ' the '. The latter is of the form 'the X Y' where X is the name and Y is the type of object. 'the X Y' (or even 'X Y') is not a new name for the object, simply a way to refer to X where there may be some ambiguity. Aaron McDaid (talk - contribs) 13:07, 4 September 2006 (UTC)

[edit] Repsonse to Deco's comment

Imagine if you have a set of objects which all fall under the same category -- let's say they're all different types of Widgets. The types are Alboo, Kabloo, Hello, Wawoob, Baboon, Choogoo, Chimpanzee, etc. Because some will cause ambiguity -- Hello, Baboon, and Chimpanzee -- they need to be disambiguated. However, since the common name (in this case, the real name) is "Hello," "Baboon," and "Chimpanzee," wikipedia has an established precedent of using parentheses. Thus, the unique widgets, Alboo, Kabloo, Wawoob, Coogoo, can have articles simply at the name itself; but the ambiguous names should have articles at Hello (widget), Baboon (widget), and Chimpanzee (widget). Thus, the article titles will be uniform in that they are all "at" the name itself, but with a disambiguator on several of them. This is easier than making all of the articles at Alboo widget, Kabloo widget, Hello widget, etc. Also, it allows for the pipe trick, so links can easily be made with [[Hello (widget)|]] --> Hello. atanamir 23:54, 1 September 2006 (UTC)

  • an example of this that's currently on wikipedia is colours. Some colours, such as Blue, Brown, and Red are at their articles, but colours like Orange (color) need the disambiguation part on them. It isn't at Orange color, althouh there is a redirect -- we can do the same thing with redirects. atanamir 23:57, 1 September 2006 (UTC)
  • also, your examples -- Titan rocket is a redirect for Titan (rocket family). Your other examples do not incite ambiguity, otherwise they'd be at places like Contract bridge (card game) atanamir 00:33, 2 September 2006 (UTC)
  • Titan rocket may now be a redirect, since it turned out to be a family of rockets rather than a single rocket, but there are still many rockets named that way (e.g. Angara rocket) and it's still cited on Wikipedia:Disambiguation specifically. The miniscule convenience of the pipe trick is not a reason for anything. My point is that this is a much wider concern than programming languages alone and represents a significant departure from the disambiguation guidelines. It would be radical to make such changes in a single area without raising them to the wider community, when your argument seems to apply to everything. The point of contract bridge and bread roll is that the more common names for these topics are "bridge" and "roll". Deco 07:48, 2 September 2006 (UTC)

[edit] Simpler disambiguation

Even if we add the parentheses, the guideline at Wikipedia:Disambiguation#Specific topic makes sense to me:

If there is a choice between disambiguating with a generic class or with a context, choose whichever is simpler. Use the same disambiguating phrase for other topics within the same context.

For example, "(mythology)" rather than "(mythological figure)".

In this case, we could have the simpler and more widely applicable "(computing)" instead of the long "(programming language)". --TuukkaH 10:04, 2 September 2006 (UTC)

I agree with the sentiment, but i think "(computing)" is too wide, with way too much opportunity for clashes:
"(programming language)" might lean towards the long side, but i don't think any alternative class comes close to being as simultaneously large, well-defined and well-populated. --Piet Delport 15:14, 2 September 2006 (UTC)
I agree that if we were to use parentheses, "(computing)" is not specific enough. Your examples are excellent, particularly "Icon", which clashes with an already-existing article! Deco 10:40, 3 September 2006 (UTC)
Perhaps you're right in that it's not specific enough. On the other hand, the disambiguation can never be perfect as there are several programming languages that share a name: NPL has three programming languages, The Language List has four programming languages called G. What about "(language)" then? --TuukkaH 22:02, 3 September 2006 (UTC)
"Language" connotes something rather different from "programming language". "Lisp (language)" for example. "Programming language" is the accepted category in the industry, abbreviated to "PL" quite often in discussions (whereas "L" is never used for this). — DAGwyn 05:59, 4 September 2006 (UTC)
What about just "(programming)"? Or is that too ambiuguous as well? atanamir 02:39, 5 September 2006 (UTC)
The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made in a new section on this talk page. No further edits should be made to this section.

[edit] Pages like C programming language, criticism

To meet the new standard, the pages should be moved to something like Criticism of C (programming language), right? examples are Georgia (U.S. State) and Politics of Georgia (U.S. state). atanamir 02:42, 5 September 2006 (UTC)

Depends on the page in question, most likely; some would work like above, some (like C syntax) wouldn't require any changes, and some might want to use a different method to disambiguate. --Piet Delport 05:55, 5 September 2006 (UTC)
Agreed with Piet; only the ones that would incite ambiguity -- simply "Criticism of C" would have ambiguity, but "C syntax" or "Syntax of C" are both rather unambiguous and would not need change. atanamir 06:01, 5 September 2006 (UTC)
Surely, criticism of C is pretty unique and should be the article? Are there any other C's that would be criticized? Aaron McDaid (talk - contribs) 21:41, 5 September 2006 (UTC)
I agree that the most likely "C" to be criticised is the programming language, but some may be looking for a criticism of the letter or magazine. Unlikely, but possible. This decision would be left up to the community, though. atanamir 01:57, 6 September 2006 (UTC)
As of now, there is only one C that is criticized on Wikipedia, and I am not aware of anyone wanting to write an article criticizing any other Cs. Therefore, criticism of C is unique. The Wikipedia standard is to only disambiguate when necessary. That article should be moved to criticism of C at some point, but we should let this debate finish first. Aaron McDaid (talk - contribs) 09:16, 6 September 2006 (UTC)
For the record, "Criticism of C" didn't even exist until I created the redirect yesterday. Was kind of surprised because it was at that wierd, longish name and is a pretty good article :). RN 10:19, 6 September 2006 (UTC)
The C criticism article was split off from the main C article, where it had previously been embedded, in response to a requirement in order for the main C article to be designated a "Good Article". I picked the name with the idea that it was a sub-article of the main one. Once the discussion has settled, I don't object to some reasonable renaming, so long as the links between the two articles are fixed up so they still point to each other. — DAGwyn 21:51, 6 September 2006 (UTC)
Aaargh! Whoever just renamed the main C article ignored this linking issue. I have edited the C criticism article so its link to the C article does not have to redirect. — DAGwyn 20:20, 7 September 2006 (UTC)
The term "criticism" should not be used (I've stated reasons for this on Talk:C (programming language); the more accurate term of "analysis" or something similar should be used. Dysprosia 03:54, 7 September 2006 (UTC)
You also received feedback to the effect that criticism doesn't have to be negative, that the article is fairly balanced, and that a list of limitations has to seem somewhat negative no matter how well-intentioned it may be. The C criticisms article is not at all a complete analysis of the language, just a description of the many characteristics of C that have drawn reasonable criticism. Since C is so popular and wide-spread, it is a target for a lot of sniping and second-guessing, and it is undeniable that that has happened, which is part of what the C criticism article specifically addresses. One of the useful functions of the C criticism page is to bring some balance to that criticism. — DAGwyn 20:20, 7 September 2006 (UTC)
I also responded to that comment by saying (and I'll repeat the comment here for the benefit of readers of this page) that the term "criticism" still has primarily a negative connotation and that because of this it is an undesirable term. The article in question has the potential to contain discussion on design points on the language and opinions on those who comment on these design points. That is an analysis of the design of the language, and has the potential to encompass views from all points on the spectrum on the matter. Dysprosia 07:43, 8 September 2006 (UTC)
I just want to chip in that i agree with DAGwyn that "criticism" does not carry negative any primarily negative connotations in this context. As the criticism article says:
"In literary and academic contexts, the term most frequently refers to literary criticism, art criticism, or other such fields, and to scholars' attempts to understand the aesthetic object in depth."
There are certain fields ("In politics, for instance [...]") where "criticism" connotes mainly negative criticism, but it should be reasonably clear that encyclopedias won't limit themselves to that. --Piet Delport 23:32, 10 September 2006 (UTC)
Technically, it shouldn't carry any as you suggest but most seem to think it is a dumping ground for it. I would recommend "Analysis" as that's what I'm doing for criticism page I watch. RN 23:43, 10 September 2006 (UTC)
"Analysis" usually implies something more formal, complete and reductionistic, though. Is that what the article is aiming for? --Piet Delport 00:00, 11 September 2006 (UTC)
It doesn't need to imply that. The article in question however should aim to examine as many viewpoints on as many language points as possible. Dysprosia 02:33, 11 September 2006 (UTC)

[edit] The layout is not attractive nor clean.

I am in favour of a new layout. There are too many cluttered examples which need illustrative concepts and also word wrapping. The external links need organization and categorizing such as learning, reference and etc. The implementation section is verbose on the initial description when it's followed with bullet points. And the features section could be more elaborative. --Herraotic 22:36, 2 September 2006 (UTC)

[edit] "abc"[0] same as in C?

I don't know Ruby, so I can't answer this question. There is this bullet point about surprises in Ruby:

Lack of a character data type (compare to C, which provides type char for characters). This may cause surprises when slicing strings: "abc"[0] yields 97 (an integer, representing the ASCII code of the first character in the string); to obtain "a" use "abc"[0,1] (a substring of length 1) or "abc"[0].chr.

When I read that, I get confused. "abc"[0] in C is the number 97 too. -- Myria 06:32, 26 September 2006 (UTC)

Nope, "abc"[0] in C yields char 'a' - which happens to be number 97 underneath but you can manipulate it as char type - for example you can write 'if ("abc"[0] == 'a')'. In ruby the char type doesn't exist so when you write 'if ("abc"[0]=="a")' you get 'false' because you're comparing integer against string. You have to therefore write 'if ("abc"[0].chr == "a")' to get expected result. This is certainly unexpected behaviour. - JohnyDog 21:56, 17 October 2006 (UTC)
Unexpected for a C programmer, at least. — Xaonon (Talk) 05:50, 3 November 2006 (UTC)
You can write "abc"[0] == ?a in Ruby. --Fukumoto 02:34, 18 October 2006 (UTC)

[edit] The Applications section ends with jibberish

The application section needs editing:

"An example of using RubyGems by installing Ruby on Rails:" is not a sentence.

"Download"  what RubyGems or RoR?
"(extract, then run "ruby setup.rb")"

Why are these in a box anyway? Only one is an actual command the rest are just a word with no explanation. Is there link that be provided which walks through the install or would a few lines with a bit more detail provide just what is needed.

Something like:

Installing Ruby On Rail illustrates a good use of RubyGems. The procedure would be as follows....

First you need RubyGems

Download it from http://rubyforge.org/frs/?group_id=126.
tar or unzip depending on which OS you are using
> ruby setup.rb

That is all there is to instally RubyGems. Now you are ready to use Gem to keep your Ruby packages up to date

> gem install rails --include-dependencies

New versions of Rails can be installed in the same way.

Question:  Can new version of RubyGems be updated the same way?
I made it better. This isn't the place for a tutorial on installing Rails anyway. Perle 07:05, 3 October 2006 (UTC)

[edit] Python

One of Ruby's closest language is certainly Python. How does Ruby stand against Python ? better ? worse ? what are the pros and cons of each ?