think, "By doing this, the machine will run faster. By doing this, the machine will run more effectively. By doing this, the machine will something something something." They are focusing on machines. But in fact we need to focus on humans, on how humans care about doing programming or operating the application of the machines. We are the masters. They are the slaves. -- Matz
define_method method_name do |*args| cache_key = [method_name, args] @_method_cache ||= {} @_method_cache[cache_key] ||= send(original, *args) end end end
"%8s %s:%-2d %10s %8s\n", event, file, line, id, cn end t = Test.new t.test #=> line prog.rb:11 false #=> c-call prog.rb:11 new Class #=> c-call prog.rb:11 initialize Object #=> c-return prog.rb:11 initialize Object #=> c-return prog.rb:11 new Class #=> line prog.rb:12 false #=> call prog.rb:2 test Test #=> line prog.rb:3 test Test #=> line prog.rb:4 test Test #=> return prog.rb:4 test Test