Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31

Thread: Tell me...

Hybrid View

  1. #1
    Guest

    Tell me...

    Why is it that people think Python is so great and that Ruby sucks? I'd very much like to understand.

  2. #2

    Re: Tell me...

    I thought it was the other way around
    Maybe its because one language is more readable or logical than the other? Have a look at some perl code. Not very readable (Well thats from what I saw anyway)

  3. #3

    Re: Tell me...

    I think they both suck and only wusses use them, but you probably know that.

  4. #4
    Guest

    Re: Tell me...

    I'll ignore kenshi the assembleur troll, but here are some critics against Python:
    - The interpreter does not automatically convert integers to big integers and backward when needed: you need to declare that your variable x will hold a large integer (you had a L after the number)

    - To manipulate characters in a given string. Example in Python, then in Ruby:
    Code:
    a = 'Jello'
    a = 'H' + a[1:]
    print a
    Code:
    a = "Jello"
    a[0] = "H"
    puts a
    The latter seems more natural to me

    - There was a post recently on LNO: the guy asked how to get random numbers. THere were about 10 replies and they all had different methods. How about just one?
    Code:
    var = rand(10)

  5. #5
    Associate
    Join Date
    Oct 2001
    Posts
    16

    Re: Tell me...

    I'd just like to mention to everybuddy that GnuVince spent an entire afternoon in a private channel on irc.openprojects.net, coming up with reasons/examples of why Ruby is better than Python (according to him). I don't even know Ruby, but after talking with him for a while about it, I'm going to go learn it.

    So, this is not a flame war .. It's an actual, intelligent discussion about programming languages!




  6. #6
    Guest

    Re: Tell me...

    I woudl also like to point out that Kint's life is easier because I wrote a script in Ruby for him!

  7. #7
    Associate
    Join Date
    Oct 2001
    Posts
    16

    Re: Tell me...

    Yes, it's saving me a truckload of work!

  8. #8
    Guest

    Re: Tell me...

    I'm gonna learn Python and Ruby when I have the time. I'm learning Perl and C now and they're both languages I really like so far.

    I don't really care if one language is better than another, all I care is having fun really.

  9. #9
    Guest

    Re: Tell me...

    Ruby is fun. I'm sure Python is fun too. Can't tell (yet).

  10. #10

    Re: Tell me...

    Code:
    a = "Jello"
    a[0] = "H"
    puts a
    I'm pretty sure that a similar thing can be done in Python. Never tried, though.

    The latter seems more natural to me
    And the idea that there is only one way to do it disturbs me.

    How about just one?
    Because then the language would be really boring and restrictive. Different methods of doing things can provide different functionality.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •