Your opinions on Ruby?

From C++ to PHP, debugging to webhosting; help and discussion about writing your latest program to running your website. NOT for help when your PC won't work.

Announcements Posted on
Sign in to Reply
  1. tamimi's Avatar
    • Peer Of The TSR Realm
    • Posts: 1,568
    Your opinions on Ruby?
    Hey. I've been hearing some good and bad things about Ruby (As in, Ruby On Rails-Ruby).

    Can someone please break it down to me? I've never used Ruby before. Am I missing out?
  2. THESHade's Avatar
    • Adored and Respected Member
    • Location: Slovakia
    • Posts: 450
    Re: Your opinions on Ruby?
    Un-secure, don`t have enough low level control, ugly. (Never used it myself though... don`t wanna bully myself...)

    Go for Python, u will never regret it.
  3. HazzaBui's Avatar
    • Junior Member
    • Posts: 25
    Re: Your opinions on Ruby?
    Loads of the error messages are stupid (unclear) as well. Spend ages debugging code, only to find the problem is nothing to do with the error message it threw at me.
  4. miser's Avatar
    • Section Moderator
    • Green Mod
    • Location: Weston-super-Mare
    • Posts: 5,578
    Re: Your opinions on Ruby?
    I don't like the aesthetics of it, but it is very quick for a lot of general development. But Ruby on Rails is too much like magic, so I don't trust it. The code does too many things.
  5. tamimi's Avatar
    • Peer Of The TSR Realm
    • Posts: 1,568
    Re: Your opinions on Ruby?
    (Original post by THESHade)
    Un-secure, don`t have enough low level control, ugly. (Never used it myself though... don`t wanna bully myself...)

    Go for Python, u will never regret it.
    I'm already Python-fluent but I never actually bothered using it in real applications. I find it too sensitive to be practical.
  6. tamimi's Avatar
    • Peer Of The TSR Realm
    • Posts: 1,568
    Re: Your opinions on Ruby?
    (Original post by miser)
    But Ruby on Rails is too much like magic, so I don't trust it. The code does too many things.
    That's what I've heard. A lot.
  7. THESHade's Avatar
    • Adored and Respected Member
    • Location: Slovakia
    • Posts: 450
    Re: Your opinions on Ruby?
    (Original post by tamimi)
    I'm already Python-fluent but I never actually bothered using it in real applications. I find it too sensitive to be practical.
    What do you mean by that?
    Sensitive syntax AKA split != Split?
    or (0,1,2) != [0,1,2]
    Or smth else?
  8. tamimi's Avatar
    • Peer Of The TSR Realm
    • Posts: 1,568
    Re: Your opinions on Ruby?
    (Original post by THESHade)
    What do you mean by that?
    Sensitive syntax AKA split != Split?
    or (0,1,2) != [0,1,2]
    Or smth else?
    I mean it's not tolerant to errors, for example, if you mis-indent in python, the whole thing goes FUBAR and starts running around naked.
  9. estel's Avatar
    • TSR Idol
    • Location: Bristol
    • Posts: 9,352
    Re: Your opinions on Ruby?
    (Original post by tamimi)
    I mean it's not tolerant to errors, for example, if you mis-indent in python, the whole thing goes FUBAR and starts running around naked.
    Only insofar as other languages might go crazy if you miss a } or a comma.
  10. THESHade's Avatar
    • Adored and Respected Member
    • Location: Slovakia
    • Posts: 450
    Re: Your opinions on Ruby?
    (Original post by estel)
    Only insofar as other languages might go crazy if you miss a } or a comma.
    Exactly.
    + you need to learn how to indent proprely anyway for other languages as well so you can actaully read your code better.
  11. iCiaran's Avatar
    • Exalted and Worshipped Member
    • Location: Wirral
    • Posts: 1,251
    Re: Your opinions on Ruby?
    (Original post by THESHade)
    Exactly.
    + you need to learn how to indent proprely anyway for other languages as well so you can actaully read your code better.

    (Original post by estel)
    Only insofar as other languages might go crazy if you miss a } or a comma.
    I find that if you have a quite complicated set of nested if statements it is much easier to see where your mistake is when you're not just relying on indentation, might just be me personally but I find that to see things clearly I need the { and the indentation...
  12. THESHade's Avatar
    • Adored and Respected Member
    • Location: Slovakia
    • Posts: 450
    Re: Your opinions on Ruby?
    (Original post by iCiaran)
    I find that if you have a quite complicated set of nested if statements it is much easier to see where your mistake is when you're not just relying on indentation, might just be me personally but I find that to see things clearly I need the { and the indentation...
    Just get a good editor that highlights it for you.
  13. tamimi's Avatar
    • Peer Of The TSR Realm
    • Posts: 1,568
    Re: Your opinions on Ruby?
    (Original post by THESHade)
    Exactly.
    + you need to learn how to indent proprely anyway for other languages as well so you can actaully read your code better.
    I'm not new to coding. At all. But thanks for the advice
  14. estel's Avatar
    • TSR Idol
    • Location: Bristol
    • Posts: 9,352
    Re: Your opinions on Ruby?
    (Original post by THESHade)
    Exactly.
    + you need to learn how to indent proprely anyway for other languages as well so you can actaully read your code better.
    To be fair, printy-print is trivial for bracketed syntax.
  15. Chrosson's Avatar
    • PS Helper
    • Vengeful, Imperial Overlord of The Student Room
    • Posts: 4,255
    Re: Your opinions on Ruby?
    (Original post by iCiaran)
    I find that if you have a quite complicated set of nested if statements it is much easier to see where your mistake is when you're not just relying on indentation, might just be me personally but I find that to see things clearly I need the { and the indentation...
    You could emulate them if you really wanted - http://www.python.org/doc/humor/#pyt...sing-explained

    But really if you've got more than 3 levels of if statements there's possibly (probably) a better approach.
  16. include's Avatar
    • Full Member
    • Location: Manchester
    • Posts: 103
    Re: Your opinions on Ruby?
    I'm not entirely sure why there is a lot of hate on RoR or Ruby to point out the former OP's question.
    It's quite a fast language and it's deployment shell is beautifully constructed. I personally don't use it and am stuck with a legacy system written in PHP at work - although being one of the largest sites in the UK it's still bloody optimised beyond anything else I've seen written in a while.

    But back on topic, Ruby may have it's downside such as error control, but ultimately it's a very powerful and efficient language. RoR is a gem (no pun intended) to work with.
Sign in to Reply
Share this discussion:  
Useful resources
Article updates
Moderators

We have a brilliant team of more than 60 volunteers looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

Reputation gems:
The Reputation gems seen here indicate how well reputed the user is, red gem indicate negative reputation and green indicates a good rep.
Post rating score:
These scores show if a post has been positively or negatively rated by our members.