SShortSingh.
Back to feed

Why Redux 'Ducks' Failed and What It Reveals About Frontend State Management

0
·1 views

A deep-dive essay in the 'Inglorious Web' series revisits the Redux 'ducks' convention, proposed by Erik Rasmussen, which aimed to bundle reducers, action types, and action creators into portable, reusable modules. The idea never gained widespread traction, partly because most application logic is too domain-specific to reuse, and partly because Redux reducers must remain pure, leaving impure concerns like browser APIs and subscriptions to live outside the store. React hooks and Vue composables later filled that gap by pairing impure logic with component lifecycles, enabling libraries like VueUse and react-use to offer genuinely portable utilities. However, this solution came at the cost of fragmentation, splitting business state and browser state across different mental models, testing strategies, and locations in a codebase. The article argues this architectural split represents a deeper, unresolved tension in frontend state management that persists to this day.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

How Random Forests Cut Variance: The Math Behind Bagging and Tree Averaging

Random forests reduce prediction variance by averaging many deep, unpruned decision trees, each trained on a different bootstrap sample of the data. Random feature selection at every split ensures trees remain diverse, preventing a single dominant feature from making all trees look alike. A mathematical identity shows that the mean squared error of an ensemble always equals the average individual tree error minus the spread among trees, explaining why diversity directly drives accuracy gains. Each tree leaves out roughly 37% of training rows, enabling out-of-bag error estimation as a free, honest validation method without a separate holdout set. Unlike boosting, adding more trees to a random forest converges to an error floor and cannot overfit, making the two methods fundamentally different in how they use depth, data, and sequential dependence.

0
ProgrammingDEV Community ·

OpenClaw vs Hermes Agent: Two Rival Open Source AI Frameworks Compared

OpenClaw and Hermes Agent have emerged as two of the most discussed open source autonomous agent frameworks in 2026, each taking a fundamentally different approach to AI task automation. OpenClaw treats agents as a team of workers, using Markdown-based identity files to define each agent's role, memory, and behavior, making it suited for structured, multi-agent workflows. Hermes Agent, released by Nous Research in February 2026, focuses on a single self-improving agent that automatically distills complex tasks into reusable skills and refines them over time. Hermes gained over 215,000 GitHub stars within weeks of launch, making it one of the fastest-growing agent projects of the year. Developers are advised to choose OpenClaw for team-oriented, deterministic setups and Hermes for a continuously learning, solo agent experience.

0
ProgrammingHacker News ·

UK Met Office Launches Glacier Tracking Tool on Climate Dashboard

The UK Met Office has added a glacier monitoring section to its online Climate Dashboard. The tool provides data visualizations tracking the state and changes of glaciers globally. Glaciers are key indicators of climate change, making their inclusion on such platforms scientifically significant. The dashboard is publicly accessible and aims to present climate data in a transparent, understandable format.

0
ProgrammingHacker News ·

DeepSeek Quietly Launches V4 Pro 0813 Model Update

DeepSeek has released a new version of its AI model, referred to as V4 Pro 0813, without a formal public announcement. The release was noted by the developer community on Hacker News, where it garnered modest early attention. Details about the update are accessible through DeepSeek's official API documentation page. The low-key rollout follows the company's pattern of iterative model improvements. No official changelog or press release accompanied the launch at the time of reporting.

Why Redux 'Ducks' Failed and What It Reveals About Frontend State Management · ShortSingh