I'm starting to lean into thinking that the "ideal" public method is at most 3 lines:
ValidatePreconditions(...parameters); var result = DoSomethingCore(...parameters); return ValidatePostconditions(result);
[#]csharp #dotnet #programming #SoftwareDevelopment
=> More informations about this toot | More toots from blaue_Fledermaus@mstdn.io
@blaue_Fledermaus you mean one:
arguments |> validate |> Result.map doSomething
[#]justKidding
[#]fsharp
=> More informations about this toot | More toots from UrsEnzler@tooting.ch
@UrsEnzler
I didn't want to scare OO/imperative programmers 😁
=> More informations about this toot | More toots from blaue_Fledermaus@mstdn.io
@blaue_Fledermaus 🤣 yes, they get scared quickly.
=> More informations about this toot | More toots from UrsEnzler@tooting.ch This content has been proxied by September (3851b).Proxy Information
text/gemini