3 ms·
Okay, but isn't your own code generator a better option in this case? You know, a for loop with some parameters that spits out code?
by pdimitar 3y ago
Okay, but isn't your own code generator a better option in this case? You know, a for loop with some parameters that spits out code?
- theshrike79 3y agoHow can a "for loop" generate me 10 API endpoints in C# that call business logic functions with the parameters received?
- pdimitar 3y agoYou tell me. You are the one who said that code was repetitive to generate. :) So it turns out, not so repetitive after all then? I remember devising my own mini DSL when I had to produce 250+ such endpoints and validators. Three days spent on that, then ran the command and I had working code 30 seconds later. Felt like a god.