by Aloha · 9mo ago · 0 comments
We just got code complete on porting a 30 year old Delphi app to C#, because of all of this.
Even now, our pure Delphi components are performant and wonderful, but hiring people who want to learn or know Delphi is hard, so off to C# we trundle forward.
Had to look at some c# backend code. To write any kind of endpoint that talked to a database they had to write at least... 7? different files, lots of empty interfaces that has to be created and implemented, command, mediator patterns everywhere, etc. Looked like insanity compared to Spring Boot
https://learn.microsoft.com/en-us/aspnet/core/tutorials/min-...
—
But if you want it to be mockable, concerns-separated and what have you, you’ll end up with at least 3-5 files. But it ain’t got nothing to do with either C# or .NET in general.
Programming against interfaces. That's what you are seeing. Makes unit testing easier.