Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

Metaprogramming vs plain Ruby or other languages

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does metaprogramming in Ruby involve? or what is the goal of this book? I am new to Ruby so don't know much about it but is metaprogramming something to apply after learning the basics of Ruby as a language like applying design pattens after you learn to write code?

Thanks
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes: meta-programming requires a strong foundation in the basics.
 
author
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're steeped in Java, then think about Java's reflection features. Reflection is not something that you learn on your first few days through the language - but when you're a bit more advanced, then you'll definitely want to know about reflection, and you'll probably use it fairly often. Metaprogramming is similar, but more advanced. So you should know the basics of Ruby before you start looking into it.
 
There are 29 Knuts in one Sickle, and 17 Sickles make up a Galleon. 42 tiny ads in a knut:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic