3 ms·
Metaprogramming is wonderful if you need it, but it's so easy to make a real mess. My experience has been that whenever I create new abstractions beyond just w
by eternityforest 3y ago
Metaprogramming is wonderful if you need it, but it's so easy to make a real mess.
My experience has been that whenever I create new abstractions beyond just writing a class or a function, everyone asks why I didn't just do some much easier hard coded solution.
I then maintain the metaprogramming based solution for a while on my own because nobody else wants to touch it.
Then I get tired of it, rip it out however I can, and realize they were right all along...
I try not to do that cycle outside of toy projects!