3 ms·
I have come to the exact same conclusion about Ruby. Finding the source of given behavior is where I tend to get the most annoyed. This is doubly so for any lib
by revscat 14y ago
I have come to the exact same conclusion about Ruby. Finding the source of given behavior is where I tend to get the most annoyed. This is doubly so for any library which uses method_missing? or other bits of Ruby-dynamism. Yes, it can (and does) lead to terser, elegant code. But it also makes it challenging to analyze root causes, and I have become less enamored of this style as I have had to deal with it over the past few years.
In this respect method_missing? is analogous to (over)using C's preprocessors. It seemed like a good idea at the time, but...
- wycats 14y agoThis isn't directly related to your complaint, but the source_location method in Ruby 1.9 is very useful: > method(:gem).source_location => ["/Users/wycats/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems.rb", 1228]