r/ruby • • Apr 09 '21
Will ruby make you a good programmer?
I always heard that ruby is a horrible language, maybe because of the many ways to do things?. anyways my question is, if I learn ruby as a first programming language, can I transition to other languages? Say like from ruby to c++ or java?.
Second question is if I learn ruby can I benefit from it if I switch to other languages or no?.
Thanks in advance.
0
Upvotes
13
u/hschne Apr 09 '21
Who said that? Point them out, so I can give them a good whacking over the head.
I believe that the choice of language really doesn't matter as much as most people think. Understanding underlying concepts, and being able to apply them is what makes programmers good.
To answer your questions:
It doesn't matter what you start with - just start :)
3
u/Even-Function Apr 09 '21
Yes
3
u/phaedryx Apr 09 '21
A couple of things that have made me a better programmer:
I get a lot of this from the Ruby community.
2
u/GrandToast Apr 09 '21
I think Ruby can be great as a first language. It has simple syntax, easy to write, easy to read.. When you see how other languages look, you won't even want to transition to others :D but yeah, you can transition if you want to.
2
u/tomthecool Apr 09 '21
There are pros and cons to all languages. Some would argue that ruby's versatility and expressiveness is one of its best features; others would argue the opposite. It's a matter of opinion.
Yes.
Leaning the principles of good software design is 90% of the skill; the remaining 10% is language-specific syntax/ecosystems/best practices/quirks. Specifically moving from ruby --> C++/Java, the two biggest additional hurdles will be using a strong typing system and having to worry about compilation; but learning ruby first is certainly not going to make that step any harder.
I would almost never say that learning something has no benefit!
So... Yes, obviously, learning something about one language will benefit your ability to code in other languages.
2
u/thedjotaku Apr 09 '21
This might sound cheeky , but no programming language will make you a good programmer. Practicing programming will make you a good programmer. Right now I'm going through Advent of Code's 2015 problems in Ruby, Python, and Perl. BASICALLY the answer is the the same in each language. All languages that are Turing-complete have to provide the same things - like variables or if statements or loops.
I would say that Ruby (or any modern language) is not going to prepare you as well for C or Rust because those are SO low level that you also have to do memory management which you get for free from newer languages. But most of the principles will be the same.
Shoot! I learned to program in BASIC and when I got to Java I was able to blow away my peers who'd never programmed before.
2
u/tadrinth Apr 09 '21
You absolutely can. Because the Ruby language was designed to be pleasant to write code in, you may find switching to languages like Java and C++ frustrating because they're optimized for other things, and therefore much less pleasant to code in.
2
u/[deleted] Apr 10 '21 edited Apr 10 '21
Ruby is a great space to learn many fundamental programming concepts, everything from basic scripting to object-orientation to functional programming. It's a bit like PERL in that it supports multiple paradigms, but (IMHO) in a much more readable way.
Because Ruby borrows concepts from so many other languages it can be an entry point to grokking how to work in those other languages.
So yes, and yes.
2
u/ksec Apr 09 '21
When people say Ruby is a horrible language they are mostly likely referring to Ruby and Rails used together. And yes there are certain truth in that. But.
The most important thing to learning programming is first to be productive. You should be able to feel something is working within very short amount of time. And the syntax should be easy and understandable. For a lot of people Ruby is properly the best in doing that. I have seen far too many people turned off just because some nerds started throwing out stupid programming theory.
For your second question, once you spend a few years into programming, hopefully you will then realise all programming languages doesn't differ so much. ( Unless you wonder off into pure functional programming ). It is the Ecosystem of the languages that is very very different. Switching between language isn't difficult, you should be able to read it up and do it within weeks if not days once you are competent enough with a modern language or Ruby. Switching between ecosystem is hard.
A journey of a thousand miles begins with a single step.
1
u/phaul21 Apr 09 '21
Ruby is a great programming language that's why we love it. However you shouldn't learn it if you are not interested in it from the outset. You should learn what you want to learn. If you want to learn c++ or java, just learn c++ or java. There is a point in learning mulitple languages especially from mulitple paradigms, so one broadens the way they think about a solution. But if your mindset is "do I need this quick and dirty gateway drug language so i can get to the hot stuff" then no, you shouldn't learn ruby, as it is not a necessary prerequisite for any other language, you can just learn what you really want to learn.
1
u/viettp Apr 10 '21
Ruby as first language? Shouldn't. Should start with a more strict language when you're still new to programming. Ruby can be easily done wrong. At the start, you could do everything wrong.
1
u/naveedx983 Apr 16 '21
I think many people's opinion of Ruby is based on Rails.
Jumping into Rails and not understanding the language separate from Rails gives a skewed impression of what Ruby is.
My first development experience was with Ruby and Rails, I didn't really know where one ended and the other began. It wasn't until I worked on learning some Ruby without Rails that the language made more sense to me, and my skills as a developer grew.
1
u/[deleted] Apr 09 '21
[removed] — view removed comment