OOP distributes state across many components by design. Often making isolating those components something of an afterthought. Pure functions are inherently testable. They take input and produce output. No hidden state.
OOP distributes state across many components by design. Often making isolating those components something of an afterthought. Pure functions are inherently testable. They take input and produce output. No hidden state.