Hacker News new | ask | show | jobs
by theshrike79 776 days ago
How can a "for loop" generate me 10 API endpoints in C# that call business logic functions with the parameters received?
1 comments

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.