Octopork

u/Octopork


r/fsharp•

Playing around with this again has me wondering how everyone else is handling this.

  • are you using custom formatters, DTOs or a more manual decoder?
  • How are you handling version tolerance?
  • what are you using for validation and how usable is the feedback?

F# seems to have so many options for this problem, how is you’re stack, if you will, built and what do like/dislike about it?

E: And autocorrect's gone and used an s for serialization, it’s not wrong, but it feels wrong.

72

r/dotnet•

Plenty of arguments on using a classic GoF repository over entity framework (and why you shouldn't) but I haven't seen much discussion on how everyone is managing usage of EntityFramework otherwise, I want to hear what techniques others are using to capture the 'spirit' of the repository.

Some questions to get the ball rolling;

  • Handling common concerns such as soft delete or auditing
  • Commonly repeated code blocks such as Include(...)Include(...), AsNoTracking(), or Single(user => user.Id == request.Id).
  • Enforcing rules on an entity such as read & create only.
5430

r/csharp•

I am looking for examples of where C# 8's default interface implementations are applicable? According to Google, few can come up with something other than adding logging overloads and it's frustrating. To this day I have not wrapped my head around where I should use them and I get the feeling I'm not the only one.

  • Any real-life examples of someone updating an interface with backwards compatibility? A commit to an established repository would be fantastic.
  • Any example use cases that would reasonably pass a code review and isn't oversimplified or contrived to the point it will won't exist in the real world.

IIRC there's some under the hood reason for having this feature as an enable

3738

r/csharp•

I've been writing C# for a year now and while I've got the basics covered and can competently work with most of the tools I'm using. To put it simply, i'm at a stage where i just need to keep programming to put everything I've read into practice but don't know what i should pick up next.

On my to read list is currently:

  • Andvanced EF core
  • Concurrency
  • Functional programming

I Unfortunately don't have a mentor to work with so what I'm more interested in is any recommended learning material on architecture and design along with anything that's important/useful but I'm likely to miss purely on the basis nothing has pointed me in its direction, I know there's so much more out there that

3830