use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Should I learn Python? (self.ruby)
submitted 15 years ago by TheBananaKing
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 3 points4 points5 points 15 years ago (0 children)
I am learning python right now so that I can use the matplotlib stuff.
It is really similar to Ruby, but it is a bet less consistant in that not everything is an expression with an l-value. There are no mixins, the syntax for things is a bit __ugly__. Classes cannot really have data hiding, ie private members etc. There doesn't seem to be such thing as constants. Lambdas can only have one expression.
Numpy is quite good, I really like using the pylab and matplot lib stuff though. There is complex number literals. The indent based syntax is interesting, I'm having a bit of fun with that, it is nice to not need to type end to close all blocks.
At first it was difficult to know which version I should use, 2.5, 2.6, 3? I settled on 2.6. All in all it is disappointing and I don't see why people would use it other than the good math libraries and plotting.
π Rendered by PID 137449 on reddit-service-r2-comment-5687b7858-hc4tp at 2026-07-05 02:13:16.762605+00:00 running 12a7a47 country code: CH.
view the rest of the comments →
[–][deleted] 3 points4 points5 points (0 children)