3 ms·
> just doesn't pan out at all in my experience. Fine! These things are based on metaprogramming; chances are you've used some of them. * In nearly any languag
by nine_k 4y ago
> just doesn't pan out at all in my experience.
Fine! These things are based on metaprogramming; chances are you've used some of them.
* In nearly any language, nearly any ORM, for describing tables / models.
* In Rust, serde, and nearly everything you #[derive].
* In Java, Lombok, Hibernate, and most dependency-injection tools.
* In Java, most mocking / stubbing libraries.
* In Python, tons of stuff, from standard library (dataclasses, namedtuples) to various parts of Django, etc.
Judging by the sustained and widespread use of these things, they are not exactly complete failures.