+ 2

Does Python and Ruby are same ?

i dont never know

16th Sep 2017, 2:31 PM
Dicky Ferdian
Dicky Ferdian - avatar
2 Answers
+ 5
Python Python is modeled after Fortran line; there is a clear distinction between expressions and statements, and between code and data. Sure, you can pass functions around like objects, but you can't go inside and change them. This makes it faster, and better suited to top-down programming. It is a lot easier to learn, and to understand when reading it. The philosophy of there's only one way to do the same thing which means there is no mystery. Python is explicit in everything. Ruby Ruby is modeled after Lisp; there is no difference between expressions and statements, and code and data. The most striking commonality is how similar Ruby's blocks are to Lisp's closures. This makes it easier to to meta programming. Ruby and Lisp are full of "tricks" which you can stumble upon by luck, and there is a lot of magic that Ruby employs. Ruby inherited the Perl philosophy of having more than one way to do the same thing. you can say that they are similar!
16th Sep 2017, 3:31 PM
Gaman Tyagi
Gaman Tyagi - avatar
0
thanks for your info
16th Sep 2017, 3:39 PM
Dicky Ferdian
Dicky Ferdian - avatar