+ 3

Why Python?

Which is better? Python or Ruby? And kindly add their pros and cons

16th Feb 2017, 9:23 AM
MrCoder
MrCoder - avatar
2 Respuestas
+ 1
It really depends on your needs. Ruby is more web-focussed, with Rails that occupy the majority of Ruby's community. There are several way to do one problem, inheriting from Perl's philosophy. However, the implementation is sometimes a bit peculiar: for instance, when you want to print a date one month from now, you import something (I don't remember what) and then, your 1 has a month attribute... That's weird... Python, however, is used mainly for scripting and scientific computing, as well as a bunch of other things, (shamelessly using Raymond Hettinger's keynote) the community is brilliant, the language features are sometimes completely different from the other languages, sometimes they even innovate and the other languages follow Python, so you see it's quite something. If you like Monty Python, there are references all over the documentation. However, Python can be a bit slow at times, so you got to be careful with your algorithms... Hope it helped
16th Feb 2017, 1:25 PM
Amaras A
Amaras A - avatar
+ 1
I never thought in learn Ruby before ( thanks for the tip). I heard python is more easy to learn but you need to be very careful because it is a sensitive language to work with, just a unique quote missing can generate an error and the order of the code could easily generate an error, but the python also say to you what is the error and let specificated what type of error and the line.
23rd Apr 2017, 6:32 PM
►► Ferontwix ◄◄
►► Ferontwix ◄◄ - avatar