Remix.run Logo
northisup 3 hours ago

Duplication is fine, triplication and above is the issue.

mjevans 3 hours ago | parent [-]

Triplication tends to be where it becomes more clear what the correct thing to abstract or de-duplicate is.

It's of course possible to functional-ize segments of logic, but then the question of state mutation must be brought up. How isolated are these changes from other parts of the code / system state. Can this be run in parallel or is it something that must be serial? What potential race conditions exist?