Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Metaprogrammitis - Im an "advanced programmer" now so Im gonna use the most advanced language features for the most inappropriate purposes.


Oh man, those are always fun bits of code to unwind.

"Yeah, I made a compiler plugin to generate code with my own custom preprocessor language I made up because I was so sick of write for (i in c)"

One guy in my company tied into Java's annotation processing engine to create his own server side UI framework driven by his random annotations.

The generated code? Usually just creating a method that populated a HashMap with stuff pulled from the annotation... Yeah...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: