runthenumbers.bsky.social
@runthenumbers.bsky.social
You can leverage immutable data structures and algebraic data types (ADTs) to encapsulate related parameters while maintaining pure functions.

Pattern: Config => (Data => Result)

So for this, replace (for example): (apiKey, timeout, retries) with ConfigType
December 30, 2024 at 11:48 PM
Data Clumps: Groups of variables that always travel together but aren't unified into a proper object.
December 30, 2024 at 11:20 PM