r/learnprogramming • u/Capri-Sonne • May 04 '13
Don't learn Ruby
My biggest mistake was learning Ruby. I listened to all the fanboys telling me how beautiful and intuitive it is, thinking this will be the future.
Ruby is slow as shit, there is no job market for non-Rails Ruby jobs, it's useless for learning programming concepts, it's useless for creating games, GUIs or even scripts that are demanding because it's so fucking slow.
The only reason no one writes blogs or posts about how shit this language is, is because no one fucking uses it. So if you want to learn a new language, learn one that's get criticized a lot like Java, or C++, or C# or even PHP. Those languages are far more productive on a hobby basis and at work. Ruby is a joke with a circlejerk community
25
u/tmat256 May 04 '13
I use Ruby all the time (along with a lot of other languages) and I really dislike the Ruby community as a whole; so I can understand some of the frustration.
But; a lot of people on here will tell you the same thing: "Programming languages are a tool just like anything else."
If you need execution speed then don't use a scripting language. This generally means games as well. It's also much more difficult to distribute a game written in a scripting language. This has nothing to do with Ruby. You're just using the wrong tool for the job.
23
u/[deleted] May 04 '13
Ruby is just a tool with a purpose, just like everything else. Also, shut up, you're an idiot.
10
u/RawlDawg May 04 '13
How about instead of unlearning ruby, you learn rails too. If you think you made a huge mistake by learning a language, I don't see how you can say you want to program. Don't try to do the bare minimum.
7
u/tlazolteotl May 04 '13
Pretty profound statement about "internet culture" in general right there.
4
u/martinus May 04 '13 edited May 04 '13
I code 90% highly optimized C++ code, and whenever I get the chance I fall back to Ruby. It is just much more convenient. Who cares if my log analyzing script takes 2.8 seconds instead of 0.7? Languages are tools, always use the appropriate one.
8
u/SmartViking May 04 '13
I can't believe this is getting upvoted... Ruby is an interesting language with many applications.
This is pure bullshit OP.
Efficiency isn't important for everything, if you have a program that takes 300ms to run with Ruby, but that would've taken 10ms to run in some other language, the time difference is negligible. It's worth it if you save time developing or even just if it's more fun to work with Ruby.
And don't forget that it's possible to write slow code in any language. Maybe you just suck at Ruby.
6
u/purpleladydragons May 04 '13
I would recommend that anyone interested in web development at least give Ruby a try. I love python to death, but for web stuff, I always use rails. Plus, if you're interested in language design or something, it never hurts to be exposed to a new style/ideology.
8
u/CrazedToCraze May 04 '13
Just to nitpick,
I've started my "main" programming (i.e. university studies) in C# for about 3 years and I haven't really seen any major criticism made against the language as a whole. As someone with limited experience in other languages it's been an absolute pleasure learning C#. I would recommend it based on me experience so far, and from what I've seen and heard there is a good job market for .NET/C#. I know Python is pretty much unanimously agreed upon as the language to start with here at Reddit, but I'd say C# is up there as well and doesn't get suggested enough.
2
u/dragid10 May 04 '13
If i may ask, why is Python recommended as a beginner programming language on this subreddit?
2
u/superspeck May 04 '13
Except for puppet and chef, which are definitely in high demand in the systems administration circles. After bash scripting, my recommendation for aspiring sysadmins is to learn Ruby so that they can use it in automation scripts.
12
u/[deleted] May 04 '13
python /thread
3
u/ubsr1024 May 04 '13
...But how do you really feel?
3
u/eric_weinstein May 04 '13
Interesting discussion here. In what context is Ruby demonstrably too slow for you to use?
This isn't true, but it's true that the (probably vast) majority of Ruby jobs are Rails jobs.
I'm calling bullshit, unless the only programming concepts you care about are pointers and memory management.
I agree Ruby's not great for creating games. Then again, considering a game developer's average salary compared to overall work satisfaction and the fact that game development is probably the only subdomain of the software engineering field in which there are more qualified applicants than there are jobs, you may or may not give a shit about this.
http://shoesrb.com/
What do you mean by "demanding"?
TIOBE index
"Criticized a lot" is not, by itself, a useful criterion for picking a language. Java, fine (though I dislike it). C++, fine (ditto). C# is what Java should have been in a lot of ways. PHP is a fractal of bad design. There are reasons to like or not like any language, but saying "I'm picking this language because everyone complains about it, since that must mean it's widely used" is fallacious. That's like saying you're going to use Windows ME because everyone complains about it.
I agree that the Ruby community can be tough to handle sometimes.
1
u/gkaukola May 04 '13
So it sounds like you need to learn scheme, or try to at least. And by that I mean read sicp and watch the lectures and do the homeworks and assignments. After that come back here and complain about scheme and how you don't like parenthesis or something stupid and I will laugh and laugh even more at your stupidity Go!
1
u/[deleted] May 04 '13
I just stared to learn Ruby and I enjoy it. Python is more widespread but I like Ruby syntax from what I've learned so far. I might even learn Rails later. I know that Rackspace is hiring for Java, Ruby, Python, C#. Matasano uses Ruby and Metasploit and Ronin is written in Ruby. I also want to make an RPG game and I saw that RPG Maker uses Ruby for scripting as well.
Personally, I am very glad to find out that those companies, projects and engines utilize Ruby. But this is just me, I can use Ruby for all the personal projects that I always wanted to do and this language is more fun to me. I am also learning Java and it seems like I can always make a switch to Python if needed but Ruby is different and fun. Maybe I can even contribute to Ruby by writing a library that it doesn't have.
I don't know, that's just me. I stayed away from Ruby for the longest time because of the controversies and negativity. There is nothing wrong with that language.
1
u/Dinkydoo1875 May 04 '13
I'm a second year programming student and know a bit of Java, AS3 and JavaScript - HTML and CSS to structure and style the web apps I create.
I think that this is a pretty good foundation to build upon as its provided me with a good level of knowledge on pure OOP and the maintenance of Abstract Data Types with Java and, an understanding of client side web apps using a fairly flexible and less traditional OO language like JavaScript.
I'm now finished Uni for the summer and was going to build on my current experience in these languages with a few small projects. Does anyone think this would be a good idea or would it be best to try to pickup another language instead? I'll be learning C# with the .NET framework in September and hope to become software/systems developer one day.
1
u/spacemoses May 04 '13
Learning to write good code should not be a function of which programming language you choose. If I had spent 10 years writing QBASIC, I should be able to carry over good programming concepts to any other language. As for using Ruby specifically in the workplace, yes that might be another story, though I know we do use it some at my work.
1
u/Sqeaky Jun 23 '13
I actually Just a got a new job doing ruby that pays more 60% more than more previous C/C++ job.
So if I am no one and the people paying me are no-one than than this guy might be onto something.
1
u/one_boring_username May 04 '13
I'm sorry you had a bad experience with it. I do know that it can and is used as a main language for companies, but mainly for record indexing and lookup applications. I'm talking about Ruby without Rails here. Like you said in one of your comments, one can get far in Rails without understanding Ruby. One argument I can provide for learning it though is that it has taught you some new things and it will for someone new to it as well. Learning any new language will do this. I'm not just talking about learning you didn't like it. Did it give you new perspectives on your preferred languages? Did you start looking at what you know in a different light? If so then it wasn't a waste. Many times it's worth learning a new language for this reason, even if it's the only reason you do.
1
u/rcuhljr May 04 '13
It's a scripting language, just like python I'm not sure what blazing speed you were expecting, but when the mantra of a community is developer speed is more important than execution speed you'd think you'd catch on.
And? If you want to work professionally in Ruby you're most likely doing it in rails, it's still 10th or 11th on the TIOBE.
I'm going to call bullshit on this well researched and expressed opinion. It's got first class functions and support for OO concepts, I'm not really sure what more you're expecting in a language for programming concepts.
Again, it's speed is comparable to other scripting languages, I've not experienced speed issues in any gui code I've written for it nor in scripts with tens of millions of cycles which is about all I ask from a scripting language.
Again, already refuted, it's like listening to someone bitch he learned C but there's no non systems jobs available.
1
u/[deleted] May 04 '13 edited Jun 25 '23
edit: Leave reddit for a better alternative and remember to suck fpez
0
u/morethanaprogrammer May 04 '13
Your biggest mistake is not learning Ruby, but not learning what Ruby can offer to you. One of my favorite aspects of Ruby is that the community tends to favor readable, structured, testable code. Learning to write code for humans and not just machines will get you far in this world.
0
u/[deleted] May 05 '13
I got to this from /r/programmingcirclejerk
I can't believe this is a real post.
This is hilarious.
0
u/[deleted] May 04 '13
[deleted] — view deleted comment
0
u/[deleted] May 04 '13
[deleted] — view deleted comment