I started learning ruby on rails few weeks ago. I don’t completely understand metaprogramming yet, but first I want to ask whether metaprogramming is worth learning if I only want to use ruby on rails to build websites. The example I see for metaprogramming is for generating undefined class method on the fly, but is it necessary?
My background: I use python on a daily base for scientific computing and have limited experience with django.
Metaprogramming is by no means a requirement to writing websites.
If you’re beginning to program in Ruby, it’s probably best not to worry about it until you’re much more familiar with the language. The added flexibility it affords you comes at the expense of complexity and obscurity.