3 ms·
Ruby lends itself to a certain kind of "decomposition" or "factoring". In a functional programming language, you get a "functional decomposition". In an OOP la
by tetsuhamu 3y ago
Ruby lends itself to a certain kind of "decomposition" or "factoring".
In a functional programming language, you get a "functional decomposition". In an OOP language, you get an "object decomposition". It's what your program structure looks like.
Ruby supports those things, but IMHO provides a sort of "grammar decomposition". Writing programs and libraries in Ruby tend to look like writing new programming languages.
Python tends to produce a "practical decomposition", or a procedural decomposition. Yeah, you can make classes and functions, but actually doing things is valued more than structuring things.