Ancestors

Toot

Written by blaue_Fledermaus on 2025-01-14 at 14:15

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

Descendants

Written by Urs Enzler 🐉 on 2025-01-14 at 14:42

@blaue_Fledermaus you mean one:

arguments |> validate |> Result.map doSomething

[#]justKidding

[#]fsharp

=> More informations about this toot | More toots from UrsEnzler@tooting.ch

Written by blaue_Fledermaus on 2025-01-14 at 14:51

@UrsEnzler

I didn't want to scare OO/imperative programmers 😁

=> More informations about this toot | More toots from blaue_Fledermaus@mstdn.io

Written by Urs Enzler 🐉 on 2025-01-14 at 18:52

@blaue_Fledermaus 🤣 yes, they get scared quickly.

=> More informations about this toot | More toots from UrsEnzler@tooting.ch

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113827126313345129
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
257.508798 milliseconds
Gemini-to-HTML Time
1.29273 milliseconds

This content has been proxied by September (3851b).