Re: tutorial// Ruby to Euphoria
- Posted by _tom (admin) May 26, 2016
- 1830 views
I have tried it. I can not program in Ruby. But, I do not claim to be able to program in Euphoria either.
Are any of my observations incorrect?
From wikipedia
Matsumoto defined it this way in an interview:[60]
Everyone has an individual background. Someone may come from Python, someone else may come from Perl, and they may be surprised by different aspects of the language. Then they come up to me and say, 'I was surprised by this feature of the language, so Ruby violates the principle of least surprise.' Wait. Wait. The principle of least surprise is not for you only. The principle of least surprise means principle of least my surprise. And it means the principle of least surprise after you learn Ruby very well. For example, I was a C++ programmer before I started designing Ruby. I programmed in C++ exclusively for two or three years. And after two years of C++ programming, it still surprises me.
Now to quote myself from another thread
In "Ruby thinking" there is a tendency to invent a new convenient rule for every situation. If your mind works like that of Matsumoto, then these "rules" effectively do not exist and you become a fan of Ruby. If you study how Ruby is put together you will find lots of inconsistencies, but if you think in Ruby then these inconsistencies are why you use Ruby.
In "Euphoria thinking" there are just a few rules that work the same all the time. The "charm" of Euphoria is that you don't have to put lots of ideas into your head, and when everything works the same, all the time, you reduce "congnitive load" and your brain feels better.
Going from Ruby to Euphoria involves learning to think simpler.
Tossing out understanding how OOP works is a big simplification.
I am constantly trying to invent some marketing jargon such as "learning to think simpler." I welcome comments.
_tom