Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

As the title says, I'm a student that will be starting my second year of C++ very soon. I've discovered Ruby, however. While I've heard much buzz about the language before, I've disregarded it because I always thought it wasn't something that would be useful.

However, I've found a number of FANTASTIC tutorials on ruby and am interested in learning it (probably because it seems so straightforward).

  1. Would playing around with ruby be a good or bad idea? I understand that there's not such thing as bad knowledge, but I'm afraid that Ruby will only confuse me when dealing with C++.

  2. How different from C++ is it? I've read it's based on C in some way.

  3. I've read some posts on here that Ruby and C++ can hold hands once in a while. How flexible is this relationship? Is it rarely that this would work?

  4. How useful is Ruby in the real world? I'm not specifically asking about jobs- I'm more interested in what sort of applications may come from this language. Any specific examples worth looking at?

share

migration rejected from stackoverflow.com Jan 10 at 12:06

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as primarily opinion-based by ChrisF Jan 10 at 12:06

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

I have to disagree with the crowd.

Ruby has a vastly different philosophy than C++. Many things that are commonly done in Ruby are either impossible or very bad practice in C-based languages. Trying to learn Ruby from a background that includes C++, Java, Perl, PhP, and C# with ASP.NET, I often find myself banging my head against the wall asking "but WHY?!" -- it's taking me considerably longer to get the "Ruby paradigm" right in my head, particularly when you throw in Rails and Cucumber and the other side technologies that inevitably get pushed into the learning queue when you start delving into actually making Ruby applications.

So I would say switching back and forth between paradigms can be confusing, especially when you're just learning both at once.

share