4 ms·
In my experience, the Ruby culture doesn't prize cleverness over consistency. Instead, it leaves responsibility up to the developer. You can do convoluted thing
by jon_dahl 18y ago
In my experience, the Ruby culture doesn't prize cleverness over consistency. Instead, it leaves responsibility up to the developer. You can do convoluted things like 7, 8, and 15, but you don't have to (and few people do). Really, any language lets you write ugly code, and good developers will strive for clarity.
As an example, you can use Perl-style magic variables in Ruby ($!, $_). But in three years writing Ruby code professionally, I think I've only seen one of these ever used, and only rarely.
IMO metaprogramming is a bigger potential problem than Symbol#to_proc or perlisms. You can override the + operator globally with Ruby, or do any other number of stupid things. But metaprogramming also offers a ton of power (similar to Lisp macros?).