10

In the Python community, the term pythonic refers to idiomatic Python[1]. Is there an equivalent term in the Ruby community for idiomatic Ruby[2]?

[1] For example, using enumerate(l) instead of range(len(l)) is pythonic.

[2] For example, using .each instead of for is idiomatic Ruby.

Miguel
  • 1,966
  • 2
  • 18
  • 32
Snowball
  • 11,102
  • 3
  • 34
  • 51
  • 2
    I noticed that two people voted to close the question. Would this belong better in a different Stack Exchange site? (If you're voting to close, please comment, otherwise I won't learn.) – Snowball Sep 19 '12 at 22:00
  • 2
    I guess I'd use the term 'Ruby-ish'. If you want to explore generally accepted ruby style, there is a community maintained style guide here: https://github.com/bbatsov/ruby-style-guide – Brian Sep 19 '12 at 22:01
  • 2
    "The Ruby Way" is the closest I've heard. I generally go with that or "idiomatic Ruby code". – the Tin Man Sep 19 '12 at 22:04
  • Ruby-esque? Ruby-ish? (Google appears to prefer the latter). – nneonneo Sep 19 '12 at 22:04
  • @Snowball - Personally, I was incline to vote for migrating it to programmers.stackexchange - but I don't participate in that community so I may be wrong. – Richard JP Le Guen Sep 19 '12 at 22:17
  • @RichardJPLeGuen: I see. I'm aware of programmers.SE, but I figured the question would fit better here based on [the FAQ](http://stackoverflow.com/faq#questions): "practical, answerable problems that are unique to the programming profession". – Snowball Sep 19 '12 at 22:27
  • @Snowball - True - but [something similar is in the StackOverflow FAQ](http://stackoverflow.com/faq#dontask): "practical, answerable questions based on actual problems that you face". There's no problem to face here. So in the end it doesn't fit on either site :P Maybe [Not Programming Related](http://area51.stackexchange.com/proposals/3352/not-programming-related)? – Richard JP Le Guen Sep 19 '12 at 22:29
  • 1
    I searched for this exact question on google, sorry to see it's closed... the term `pythonic` is quite used on SO and useful to identify precise questions or answers in a web search, so an equivalent ruby term would be useful to know. i'd vote to reopen the question. – caesarsol Sep 11 '14 at 13:43
  • 1
    I vote we all start using Rubonic. – marsh Sep 14 '15 at 17:13

1 Answers1

6

I've not heard of any such shorthand, presumably because there's no convenient suffix you can append to Ruby to turn it into an adjective :)

If you say something's idiomatic, and you're around rubyists, I think everybody will know what you mean.

Chris Mowforth
  • 6,689
  • 2
  • 26
  • 36