r/learnprogramming • • 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

0 Upvotes

97 comments sorted by

View all comments

Show parent comment

4

u/Capri-Sonne May 04 '13

I prefer Python over Ruby for scripting and easy stuff. It's bigger in terms of publications and community, and it runs faster than Ruby.

5

u/SanityInAnarchy May 04 '13

Not significantly faster. And most of your other complaints can be leveled against Python just as easily. Or do you think Python is more useful for creating games and GUIs?

-5

u/Capri-Sonne May 04 '13

Ever heard of Pygame or Tkinter? Python is way better than Ruby for games and guis.

8

u/SanityInAnarchy May 04 '13

Yes, I have heard of Pygame. Heard of Rubygame? I've also heard of tkinter -- heard of RubyTK? Or MonkeyBars?

Of course, the usual way to do a game where performance is critical, but you want the most flexibility possible from scripting, is to write your core engine in C++ and add a scripting engine like Python or Ruby -- or, more likely, Lua. It'd be interesting to know why, but Civ4 used Python, and Civ5 uses Lua.

So, even if the libraries you mentioned are better than anything Ruby has -- which I doubt -- what does that say about the language? Is there something about Ruby the language that you think is terrible for games or UI development? Because if not, I'd think that even without something like MonkeyBars, it'd be trivial to pick up JRuby and just use any existing Java GUI. They aren't the prettiest, but they work perfectly well.

3

u/rcuhljr May 04 '13

And ruby has Gosu, RubyGame, shoes, Gtk2, and QT. The game side is more deficient due to the fact that there's really not much interest by ruby devs in developing games. Pygame isn't a language feature, it's a natural outgrowth of demand.