Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 976403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:44:28+00:00 2026-05-16T03:44:28+00:00

So Meta Programming — the idea that you can modify classes/objects at runtime, injecting

  • 0

So Meta Programming — the idea that you can modify classes/objects at runtime, injecting new methods and properties. I know its good for framework development; been working with Grails, and that framework adds a bunch of methods to your classes at runtime. You have a name property on a User object, and bamm, you get a findByName method injected at runtime.

  1. Has my description completely described the concept?
  2. What else is it good for (specific examples) other than framework development?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T03:44:28+00:00Added an answer on May 16, 2026 at 3:44 am

    To me, meta-programming is “a program that writes programs”.

    Meta-programming is especially good for reuse, because it supports generalization: you can define a family of concepts that belong to a particular pattern. Then, through variability you can apply that concept in similar, but different scenarios.

    The simplest example is Java’s getters and setters as mentioned by @Sjoerd:

    Both getter and setter follow a well-defined pattern: A getter returns a class member, and a setter sets a class member’s value. Usually you build what it’s called a template to allow application and reuse of that particular pattern. How a template works depends on the meta-programming/code generation approach being used.

    If you want a getter or setter to behave in a slightly different way, you may add some parameters to your template. This is variability. For instance, if you want to add additional processing code when getting/setting, you may add a block of code as a variability parameter. Mixing custom code and generated code can be tricky. ABSE is currently the only MDSD approach that I know that natively supports custom code directly as a template parameter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 530k
  • Answers 530k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Do you have any idea why is this happening? Yes,… May 16, 2026 at 11:41 pm
  • Editorial Team
    Editorial Team added an answer If selects > manipulations, and especially subtree selects (all ancestors,… May 16, 2026 at 11:41 pm
  • Editorial Team
    Editorial Team added an answer Figured it out - if you want more than one… May 16, 2026 at 11:41 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I want to get into more template meta-programming. I know that SFINAE stands for
In meta-programming number of classes grows quite fast. Is maximum number of classes modern
I'm using some meta-programming to generate a bunch of methods in ruby like so:
This is one of those meta-programming questions that may or may not belong on
Any good summary articles of the dynamic language and meta-programming features of Python that
Qt library includes advanced meta-programming capabilities using they own preprocessing moc compiler. Does anyone
I am trying to use elements of meta programming, but hit the wall with
I am documenting some code which uses meta-programming heavily, for example: template<rysq::type A, rysq::type
Is it possible to use member function pointers with template meta-programming? Such as: class
I'm working on creating an app that will parse MSDN articles for meta-information such

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.