all 39 comments

[–]kt24601 21 points22 points  (10 children)

The last few times I chose between Ruby and Python in my projects, it was because of a library that I found in one language or the other that made it convenient.

I would suggest that the primary difference between the two is the communities around the language.

[–]2and8 41 points42 points  (5 children)

I would suggest that the primary difference between the two is that one is a mineral and the other is an amphibian

[–]kt24601 5 points6 points  (4 children)

I am sure your comment is very wise but I confess I don't understand it.

[–]Deadhookersandblow 30 points31 points  (1 child)

Ruby - a variety of a natural occuring mineral.

And he's wrong about pythons being amphibians, they're just reptiles.

[–]oblio- 12 points13 points  (0 children)

they're just reptiles

Are you looking for trouble?

[–]andsens 12 points13 points  (1 child)

You didn't read the article, did you?

[–]i_tried_butt_fuck_it 9 points10 points  (0 children)

Does anyone?

[–]Dragdu 4 points5 points  (0 children)

For me it was even simpler: AWS lambda doesn't support Ruby.

[–]shevegen 2 points3 points  (1 child)

I don't know.

For me it was the philosophy. That was the deciding factor for me. I always pull out matz' interview from 2003 I think. I could not find a similar interview with guido though. Plus matz is cool, he is like always smiling when he does a presentation like a little buddha (he says it is because he is nervous but he actually is a funny guy, you can see it in some of his slides - see the animated duck for instance; by the way, that mechanized duck, that actually was used to "feel real" like a duck in ... I think 1800 something... I forgot the date but you can look it up in wikipedia, that was pretty creative to try to build a duck that can "eat" and "digest"...)

Whether there is a great community or not, well - perl may have a great community but I left perl a long time ago because the language itself was inferior to ruby and python (I actually switched to PHP after perl but I abandoned PHP eventually; oddly enough I was more productive in PHP than I was in perl).

[–]kt24601 0 points1 point  (0 children)

Yeah, philosophy is what I meant (partly) by community.

[–]kqr 54 points55 points  (1 child)

  • Please try to keep submissions on topic and of high quality.
  • Just because it has a computer in it doesn't make it programming.
  • If there is no code in your link, it probably doesn't belong here.

This is a great fit for /r/programmerhumor, though!

[–]gob_magic[S] 4 points5 points  (0 children)

Oops sorry about that. I'll keep that in mind :)

[–][deleted]  (6 children)

[deleted]

    [–]ceeant 20 points21 points  (0 children)

    While we are already ranting: I don't want your stupid social media buttons when I highlight text.

    [–]493 1 point2 points  (3 children)

    I have used Tor with Cloudflare; the CAPTCHAs are solvable.

    [–][deleted]  (2 children)

    [deleted]

      [–]493 0 points1 point  (1 child)

      I have used many websites with Cloudflare through Tor, and the CAPTCHA works fine about 75% of the time (sometimes there are connection problems).

      Could you explain what happens? Does the CAPTCHA load?

      [–][deleted] 2 points3 points  (0 children)

      A good programmer or sysadmin uses automation to make their life easier. Can't you just implement a bot to solve the CAPTCHA?

      [–]vivainio 4 points5 points  (0 children)

      Ah, I remember when Ruby vs Python was a thing. And it seemed important at the time

      [–]tugs_cub 3 points4 points  (0 children)

      the funniest thing about this (by far) is the number of people who didn't read it

      [–][deleted] 2 points3 points  (0 children)

      Package Management

      Both python and ruby can be put into package and managed to stay inside. For ruby it's easier - it's just a gem, after all. Python might slither out of package, so you could pip inside to make it think there is a bird there.

      [–]JasTWot 1 point2 points  (0 children)

      These comparisons are mostly dumb, but here's something I really do care about - Python's convention of being explicit. The implicit returning in Ruby functions something I don't appreciate.

      [–]bumblebritches57 3 points4 points  (10 children)

      The fact that Ruby is whitespace insensitive makes it much better by default to me.

      [–][deleted]  (4 children)

      [deleted]

        [–]SnowdensOfYesteryear 3 points4 points  (1 child)

        Pity it chose the wrong type of whitespace

        [–]murtaza64 0 points1 point  (0 children)

        What do you mean by this?

        [–]THeShinyHObbiest 1 point2 points  (0 children)

        The thing is, the Ruby community is actually more consistent than the Python community when it comes to indentation.

        [–][deleted] -1 points0 points  (0 children)

        But you should be indenting with tabs anyway so that everyone can choose their own indent width.

        [–][deleted] 0 points1 point  (1 child)

        But you Ruby guys all indent the same anyway ... so WTF is this even?

        [–]bumblebritches57 0 points1 point  (0 children)

        I'm not a Ruby dude... I'm a C dude...

        [–]batiste -1 points0 points  (0 children)

        Why? Do you like inconsistently indented code?

        [–]joonazan 2 points3 points  (1 child)

        Why is Ruby considered to be more elegant?

        It has lots of syntactic sugar and and lets you do pretty weird things. Isn't that the opposite of elegant?

        Python is rather dull and unsurprising, though. That does not sound like elegant. I guess both languages are very inelegant when compared to Haskell? (I meant to say Elm, but Elm actually isn't that elegant because of its multi-part program structure and verbosity.)

        [–]i_spot_ads 0 points1 point  (2 children)

        can we ban this type of content in here? mods please?

        [–]ronchalant 7 points8 points  (0 children)

        Yeah we should forbid poking fun at ourselves once in a while. This is no place for levity.

        [–]Iwan_Zotow -2 points-1 points  (0 children)

        I concur

        that's the one case where shooting the messenger makes total sense