Earlier quoted context omitted.
That’s without even mentioning the footguns available in @@count Jez!
Ah sure, this alternate implementation assumes that the BlogPost class is final and never subclassed. If you plan to subclass BlogPost, the translation is not identical, as the alternate implementation would not keep track of a global count of posts across all subclasses, only of `BlogPost` instances exactly.
Why Ruby Is More Readable Than Python
91–100 of 149 posts
Re: Why Ruby Is More Readable Than Python
#92With better unicodes I wish computer language could use fancier characters to express loops, conditionals and in general without using the english language. goodbye to [if, else, switch, break, lastly, each etc..] let us crate a language that uses no letters but unicode symbols to express abstractions. Like emojis.
Re: Why Ruby Is More Readable Than Python
#93Earlier quoted context omitted.
That’s without even mentioning the footguns available in @@count Jez!
Ah sure, this alternate implementation assumes that the BlogPost class is final and never subclassed. If you plan to subclass BlogPost, the translation is not identical, as the alternate implementation would not keep track of a global count of posts across all subclasses, only of `BlogPost` instances exactly.
Re: Why Ruby Is More Readable Than Python
#94Ruby, like so many other good things, is best enjoyed alone :-) I've loved every Ruby codebase that I've written. I still consider it one of my favorite programming languages, and (in pedagogical terms) one of the best languages for learning "practical" functional programming (point-free style, blocks as intuitive closures, &c.). But when I work with others, I find that all of the things that I love are obnoxiously c…
Most poetry is like https://hitchhikers.fandom.com/wiki/Vogon_poetry.
And the worst is that I'm unable to do poetry.
---
I'm enthusiast about learning about languages, and enjoy everything I see about APL, Ruby, Scheme, Forth, Haskell, etc. I actually LIKE the concepts.
Is kind of relaxing take a look around the basic tutorial or read what the "good" poets say about that.
But my instinct tell me it will be torture to live like a poet.
So, for actual work, is much better (for me) all languages that have restriction and strict ideas about stuff.
- Python FORCE indentation? SOLD!
- Pascal DEMAND declare all before use? GIVE ME MORE!
- Rust SMASH YOUR HEAD at every keystroke? SHUT UP, TAKE MY MONEY!
Re: Why Ruby Is More Readable Than Python
#95Interesting. 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!
Re: Why Ruby Is More Readable Than Python
#96I have noticed that this extends to Ruby's approach to bundler, and Python's approach to virtualenv/et al.
Knowing this made me less irritated at Python.
Re: Why Ruby Is More Readable Than Python
#97Subjective opinion presented as fact? Say it ain't so.
The author doesn’t do any of this, in fact the author is barely even arguing a point. It’s pretty clearly an opinion piece. Human beings have been writing like this and differentiating between fact and opinion for centuries. Demanding that all writing be watered down to hedge-laden statements and statistics would land us in a very boring world indeed. People can read, judge, and think for themselves. We don’t all approach literature like computers reading instructions.
Re: Why Ruby Is More Readable Than Python
#98Earlier quoted context omitted.
The author relies on you, the reader, to exercise thought? Say it ain't so.
Maybe the blog post title should then be "Why a Ruby dev finds Ruby more readable than Python". And the post body reads: "Because that's what they're used to." Fin. Roll credits. Personally, I find Python more readable, because I know Python better than Ruby. I don't think there's anything inherently more discoverable about @@ to denote a class field. Python instance fields are all prefaced with self, so a bit of cur…
Often the goal in writing an essay is to share a personal view or experience, and sometimes to get others to share their thoughts on a topic. For example, if you did write an essay on why Java’s static is better than Ruby’s @, it might lead others to engage with you, share their thoughts, and help you learn more or modulate your own viewpoint as a result.
Montaigne, the oft-touted father of the essay as a form of literature, in fact explicitly wrote essays as a means of self-reflection and self-exploration.
This isn’t some technical paper coming from a research lab or standards body, it’s someone interested in a particular topic sharing their thoughts on that topic, potentially influencing others and potentially being influenced themselves.
Re: Why Ruby Is More Readable Than Python
#99Earlier quoted context omitted.
It's a bit of a weird take when attribute definition in Ruby also uses at signs specifically. Which part do you find ugly?
> It's a bit of a weird take when attribute definition in Ruby also uses at signs specifically. No that’s instance variables. > Which part do you find ugly? In Ruby to modify a method you just call a method. I guess I think a second, redundant, way to call methods is not elegant.
Re: Why Ruby Is More Readable Than Python
#100The dunders in python make my eyes bleed. It stands out in an otherwise neat language, due to its significant whitespace.