davidwengier
❔ Source generator for creating REST Api
In a past life I wrote a rest API that was generated from database models, and it worked really well. I think it's a great idea. We just ran the generator manually when we changed the schema, because it happened pretty rarely.
10 replies
❔ Source generator for creating REST Api
The unique value prop, in my opinion, of source generators is that they can get at the compilers object model for source code. If you're not using that, then an external tool that you run in your build pipeline, is probably just as good
10 replies
❔ Source generator for creating REST Api
The compiler has to load them anyway, so it's not inefficient per se, it's just work that doesn't need to happen as often as source generators run, and it's also work that doesn't really benefit from being in a source generator
10 replies