Hacker News new | ask | show | jobs
by pdimitar 774 days 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?
1 comments

How can a "for loop" generate me 10 API endpoints in C# that call business logic functions with the parameters received?
You 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.