Jump to content

Talk:Ruby (programming language)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Steel1943 (talk | contribs) at 19:22, 27 October 2022 (Notification: listing of Ruby (programming language at WP:Redirects for discussion.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Template:Vital article

Let us include at least one pointer to a good Programming language reference

I call your attention to the fact that currently the expression "language reference" is not present on the page. It is nice to read tutorials and getting started guides, but the point comes when you want to get down to serious business. Then you need a language reference. Matz knows this and he wrote one - last modified: Mon Feb 23 16:01:41 1998.

Nonsense claim in the metaprogramming section

"To implement the equivalent in many other languages, the programmer would have to write each method (in_black, in_red, in_green, etc.) separately."

That is absurd: I have worked in over a dozen languages, and I can't think of one of them where one would need to write a method per color! In C, for instance, you would write a print_in_color() function, and pass in an array index (e.g., 'BLUE') for which HTML code you wanted to output. This appears to have been written by someone who has not programmed in any language but Ruby. GeneCallahan (talk) 19:32, 2 March 2015 (UTC)[reply]

I'm certainly no fan of Ruby (currently struggling with it for work...) but this claim seems legitimate. The result is that the user can write "in_blue(x)", the fact that blue is chosen is part of the identifier for the function. You are saying "blue" can be passed as an argument to the function but that is different. I would suspect lisp can do this pretty easily, and probably most interpreted languages can do something like this but perhaps using non-portable code specific to a given interpreter.Spitzak (talk) 21:45, 2 March 2015 (UTC)[reply]

Version table

Would a version table be useful? If so, where would it be best placed? I would propose at the top of the 'History' section, as that is where the different versions are discussed.

The table may look like this:

Version Date End of support
Old version, not maintained: 1.9.3 2011-10-31 2015-02-23
Old version, still maintained: 2.0.0 2013-02-24
Old version, still maintained: 2.1.0 2013-12-25
Latest version: 2.2.0 2014-12-25
Latest version: 2.2.3 2015-08-18

Taken and adapted from Template:Version This is just intended as an example and may not contain all required information. Jrmh (talk) 12:39, 6 October 2015 (UTC)[reply]

I see we have a Ruby (programming_language)#Table of versions which was added 24 January 2016 by User:V975. Looks good. -- Harry Wood (talk) 17:34, 21 April 2022 (UTC)[reply]

Unicorns are extinct?

Why was Unicorn (web server) deleted? Viam Ferream (talk) 14:32, 11 January 2016 (UTC)[reply]

@Viam Ferream: I don't see what this has to do the *this* page, but the note at the creating page screen says: "05:01, 10 January 2016 Rjd0060 (talk | contribs) deleted page Unicorn (web server) (Expired PROD, concern was: unreferenced software article of unclear notability, tagged as unreferenced since 2014, and created by an SPA as possibly promotional)". Information about PROD's can be found at Wikipedia:Proposed deletion. If you have further questions about the deletion, you should ask the deleting admin, Rjd0060 (talk · contribs), on their talk page. Rwessel (talk) 23:20, 11 January 2016 (UTC)[reply]
See Green Unicorn, a Python port of the Unicorn web server for Ruby. I'm not familiar with Ruby or Unicorn, other than as a precursor to Green Unicorn. They both have a weird forking model, so they're ineresting mostly as a different way to design a web server, not for being the most popular web server in use. As I guess youre a Ruby developer, do you have any opinion on whether Unicorn ought to be seen as notable? Viam Ferream (talk) 10:34, 12 January 2016 (UTC)[reply]
I think Unicorn *might* be notable, but I really can't say for sure. The fact that Gunicorn is notable, does not, however, offer evidence that Unicorn is. However "notability" for Wkikipedia is not quite the standard English definition, rather it's as defined by Wikipedia:Notability. And while an essay and not policy, Wikipedia:Notability (software) is good advice to follow. I'm not an admin, so I can't see the deleted article, but the problem is clear from the PROD notice: the article was unsourced (and that state had persisted for over a year), and the notability of the subject was never established. If those fail to happen, the article will be deleted. If you want the article undeleted and userfied (put into your user space so you can work on it), the deleting admin is the person to ask. Add some references and establish notability (and good references will generally do that), and we can move it back to the main space. Rwessel (talk) 21:33, 13 January 2016 (UTC)[reply]
Hmmm, I think thats one of those "I'd like to read it but I don't know enough to write it" topics. Ruby isn't really my thing. Viam Ferream (talk) 10:23, 14 January 2016 (UTC)[reply]
@Viam Ferream: I created quick stubs to describe the technology stack of popular Ruby web applications like Discourse, Mastodon or Diaspora, and so I covered the Mongrel successors, including Unicorn (web server).
For the notability, there are references, books about Ruby or computer science conference papers, strongly indicating Unicorn was used as the preferred web server before Puma (web server) appears. The stubs are fully sourced.
I'd guess the "weird forking model" is they try to work in a single thread, to avoid any multithreading issues. The popularity seems only a question of usability (they don't ask modification of software or heavy configuration) and performance (benchmarks from Twitter or Deliveroo speaks about requests per seconds). The sources in the Unicorn and Puma article contains some hints about the adoption reasons.
As I'm not a Ruby expert, I'd appreciate if you could review the articles to be sure they're readable. --Dereckson (talk) 13:04, 31 March 2018 (UTC)[reply]

Hello fellow Wikipedians,

I have just modified one external link on Ruby (programming language). Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:

When you have finished reviewing my changes, please set the checked parameter below to true or failed to let others know (documentation at {{Sourcecheck}}).

This message was posted before February 2018. After February 2018, "External links modified" talk page sections are no longer generated or monitored by InternetArchiveBot. No special action is required regarding these talk page notices, other than regular verification using the archive tool instructions below. Editors have permission to delete these "External links modified" talk page sections if they want to de-clutter talk pages, but see the RfC before doing mass systematic removals. This message is updated dynamically through the template {{source check}} (last update: 5 June 2024).

  • If you have discovered URLs which were erroneously considered dead by the bot, you can report them with this tool.
  • If you found an error with any archives or the URLs themselves, you can fix them with this tool.

Cheers.—cyberbot IITalk to my owner:Online 02:08, 2 April 2016 (UTC)[reply]

Relevance of old version sections?

I'm not sure what the sections that basically amount to release "cliffnotes" (especially for the versions that are obsolete) add to this page. Is there a reason to include them? The table with version numbers and support status seems like it would suffice. rubah (talk) 05:28, 10 September 2016 (UTC)[reply]

Keep "differences"?

About this edit. Is it bad to show differences? I didn't look over, saying any of them are true (or not).

Just, if language A (Ruby) has for sure some syntax/semantics and some other language B something else, then ok with WP:V? I'm not even sure you need an official spec. comp.arch (talk) 14:37, 13 March 2017 (UTC)[reply]

Latest stable software release template

Can anyone help me clean up the mess I've made trying to use Template:LSR? I've created Template:Latest_stable_software_release/Ruby, but the resulting "+" button on the main Ruby article links to Template:Latest stable software release/Ruby (programming language).

The latter redirects to the former, but I've screwed things up :-(

Scottmacpherson (talk) 10:02, 26 June 2017 (UTC)[reply]

@Scottmacpherson:, I fixed it. I copied the contents of Template:Latest_stable_software_release/Ruby to Template:Latest stable software release/Ruby (programming language) and then changed in the infobox programming language the parameter name to parameter title. The difference is that parameter name affects the title of infobox and the internal name used in the editing button (+), while the title affects the title of infobox only. This makes the links in the edit button based on the page name. After that, I suggested the deletion of Template:Latest_stable_software_release/Ruby, and it was deleted. read (talk) 02:07, 8 June 2018 (UTC)[reply]

POLA Principle of least astonishment / surprise

The article right now states:

"Matsumoto attempted to distance Ruby from POLA"

But this is historically incorrect. Matz never coined POLS or POLA himself; that was in particular pragdave who coined this.

So when the article claims "attempted to distance ruby from xyz", then this is not historically correct. Matz was not the one who used POLS/POLA; that came from others, so how could he "distance" ruby from it, if ruby never followed POLS or POLA? This is simply inaccurate what the wikipedia article claims right now. Whoever wrote it clearly did not know the history of ruby from matz point of view. It should be reworded. 80.110.94.82 (talk) 10:37, 18 August 2019 (UTC)[reply]

Important Question

Why can't I find anything about furigana in this article? I've read some, but still. — Preceding unsigned comment added by 72.68.2.144 (talk) 10:11, 22 October 2020 (UTC)[reply]

Because the subject of this article is completely unrelated to Ruby character. A link for that is in the disambiguation page on the very top of the article. Fbergo (talk) 12:07, 22 October 2020 (UTC)[reply]

"Ruby (programming language" listed at Redirects for discussion

An editor has identified a potential problem with the redirect Ruby (programming language and has thus listed it for discussion. This discussion will occur at Wikipedia:Redirects for discussion/Log/2022 October 27#Ruby (programming language until a consensus is reached, and readers of this page are welcome to contribute to the discussion. Steel1943 (talk) 19:22, 27 October 2022 (UTC)[reply]