@aral See also freecodecamp.org/news/elegant- where they use that technique.

[Not related to the main topic ->] the RORO pattern can be useful on the long term when you need to add, rename or remove arguments to or from your functions.


@severo_bo (I’m also a big fan of using parameter objects once you’re past a couple of paramaters for most things) :)

· · Web · 0 · 0 · 1
Sign in to participate in the conversation
Aral’s Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!