Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
mikescs
5,018 PointsPython course vs...
Hello i see that Python course will be available in July 2014. Can you include in that course a comparison between Python 2 vs Python 3 vs Ruby ? But mostly i would like to see differences between Python and Ruby (especially in real world apps). I know i can google that but it would be a good addition to the course..don't you think ?
2 Answers
cbcbcb
16,560 PointsPython 2.x is still the standard. A lot of the third party APIs are written in 2.6. I know the Python 3 uses a function for printing output to the console....Comparison to Ruby..I think a lot is going to be preference but perhaps a more knowledgeable individual will chime in. For the information security world one of the influential factors that plays a part in deciding which to learn initially is the Metasploit framework which is written in Ruby. So many "new" security folks will go the Ruby route just to kill two birds with one stone.
Python's has more robust libraries for interacting with the operating system. That seems to be a strong point in my opinion.
Kenneth Love
Treehouse Guest TeacherWe won't be covering Python 2 vs Python 3 or Python vs Ruby, since my goal is to teach you the language, not persuade you to one or the other :) But we will be teaching Python 3 only, since Python 2.7 is the end of the Python branch and has been given an EOL date. If you want more reasons why I'm choosing Python 3 and what some of the differences are, check out this Forum thread.
Choosing between Python and Ruby is really kind of a wash. Both languages can do most of the things the other one can. If you want to make a domain-specific language (DSL), you're better off with Ruby. If you want to do scientific computing or the like, you'll want to use Python. For most other things, they're pretty even.