Interesting. Even with the examples given, I found Python considerably easier to follow, with the possible exception of the inheritance example. Just goes to show how subjective it all is!
Why Ruby Is More Readable Than Python
11–20 of 149 posts
Re: Why Ruby Is More Readable Than Python
#12Subjective opinion presented as fact? Say it ain't so.
This is a matter of style; we encourage writers to write this way and trust that readers know the difference between fact and opinion. Go through a typical college writing class and the teacher will direct you to delete phrases like “I think” and “I believe” from your writing.
Re: Why Ruby Is More Readable Than Python
#13Ruby is clever, it can be beautiful, but I've never seen a good codebase using it grow well without enforcing strictly opinionated ways of writing it to ensure maintainability. Which breaks a lot of the expectations of some Ruby developers that chose the language because they like to write it in their own way.
Re: Why Ruby Is More Readable Than Python
#14Subjective opinion presented as fact? Say it ain't so.
This is a matter of style; we encourage writers to write this way and trust that readers know the difference between fact and opinion. Go through a typical college writing class and the teacher will direct you to delete phrases like “I think” and “I believe” from your writing.
I do wonder how this style of writing has impacted the psychology of argument, I imagine there are others who read this style of writing and assume it is written in stone or as an objective statement, and not a subjective one. This may just be human nature.
Re: Why Ruby Is More Readable Than Python
#15Re: Why Ruby Is More Readable Than Python
#16I find it odd that getters and setters are implemented in Ruby … manually. attr_accessor is the idiomatic way to do it (or attr_reader / attr_writer if you want more granular control).
Re: Why Ruby Is More Readable Than Python
#17Interesting. Even with the examples given, I found Python considerably easier to follow, with the possible exception of the inheritance example. Just goes to show how subjective it all is!
Python is far more readable and comprehensible than Ruby.
Haven't even bothered to read TFA because it's just weird flamewar bait.
Re: Why Ruby Is More Readable Than Python
#18Subjective opinion presented as fact? Say it ain't so.
This is a matter of style; we encourage writers to write this way and trust that readers know the difference between fact and opinion. Go through a typical college writing class and the teacher will direct you to delete phrases like “I think” and “I believe” from your writing.
Eternal September gets worse when their teachers are teaching them bad habits from the get-go.
Re: Why Ruby Is More Readable Than Python
#19Still applicable I think.
Re: Why Ruby Is More Readable Than Python
#20I find it odd that getters and setters are implemented in Ruby … manually. attr_accessor is the idiomatic way to do it (or attr_reader / attr_writer if you want more granular control).
It's for encapsulation. You can switch them out for a method with logic without changing your interface. I don't know Python very well - is that the same there?