News for hackers. Stuff that matters.
Re:The Grep Test by agentultra on Friday July 12, 2013 @01:39PM (#6033875)
I must be pedantic and separate the definition of "metaprogramming," and "dynamic programming;" of which this is the latter.

The reason this difference is important is that metaprogramming is structured and explicitly defines the change in the program's semantics.

Thankfully I have never seen code like what was posted in my experience with Python so far. Explicit is better than implicit which the code example in this post would fail to pass IMO. Dynamically dispatching to names that don't exist in a class' published interface at call-time is a big no-no in my book.

Although practicality beats purity.

I haven't seen it yet but that doesn't mean there is a practical reason to use this method of dynamic dispatch. If there were one and it gets a problem solved NOW rather than waiting to find a better solution -- it might be worthwhile.

However it's a price you have to pay.

I think the grep-test is at least a good way to test the waters with a bit of code. I don't think it's a universal end-all-discussions rule.

Re:The Grep Test by wtetzner on Saturday July 13, 2013 @01:26PM (#6038046)
Dynamic programming already has a meaning: https://en.wikipedia.org/wiki/Dynamic_programming
Re:The Grep Test by agentultra on Monday July 15, 2013 @10:57AM (#6045933)
Right, thanks for pointing that out. That makes this what, then? Hash-blob programming? :)
Re:The Grep Test by x3ord on Friday July 12, 2013 @01:49PM (#6033943)
Sorry to be pedantic, but this is not dynamic programming.
Re:The Grep Test by agentultra on Monday July 15, 2013 @09:38AM (#6045409)
No need to be sorry