Amy Blankenship
Sep 19, 2022

--

I didn't see anything in what you propose that reduces coupling. Anytime you have direct access to global state, you're coupled to it. Not only that, it becomes difficult/impossible to figure out which part of your program changed that state in unexpected ways. Often these types of proposals just look at the DX of initial development and fail to consider how much harder they make maintenance over the long haul.

--

--

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.

Responses (1)