We're a place where coders share, stay up-to-date and grow their careers.
It's fascinating to see how something like "principle of least surprise" can be interpreted and addressed so differently. The Ruby and Python solutions for this could not be more different.
It’s especially interesting because both languages (python 2.7 at least) are pretty similar from a high level technical point of view.
Both OOP style languages Both interpreted (usually) Both very high level Both dynamic Both are even heavily used in web development
It's fascinating to see how something like "principle of least surprise" can be interpreted and addressed so differently. The Ruby and Python solutions for this could not be more different.
It’s especially interesting because both languages (python 2.7 at least) are pretty similar from a high level technical point of view.
Both OOP style languages
Both interpreted (usually)
Both very high level
Both dynamic
Both are even heavily used in web development