AurumNova Blog

MVC is dead! Long live Flux! Er... I mean Redux!

Written by Daniel Sim | Nov 3, 2021 6:51:00 PM
 

The horror of horrors! I am that ancient in the land of software development. I have been messing around with React and realized that the Model-View-Controller (MVC) is as relevant as horses on highways in today's world of swanky web apps.

The Road to Flux: A Journey from Chaos to Clarity

A Paradigm in Perpetual Motion

MVC wasn’t just a pattern—it was a revolution. Born in 1978 as a shared language among innovators, it set the stage for organizing software with clarity and separation of concerns. But as the digital world evolved, so did our challenges. When the web burst onto the scene, the old two-way dance of MVC started to show its age.

The Web’s Demand for a New Order

In the early 2000s, web frameworks reimagined MVC for the Internet. Controllers became gatekeepers of HTTP requests, and Views morphed into assemblers of HTML, CSS, and JavaScript. Yet, as applications grew more intricate—transforming into Single-Page Apps (SPAs)—the limitations of traditional, mutable state management became painfully apparent. Complexity demanded innovation.

Enter Flux: The Answer to Complexity

React’s emergence was not a mere rehash of MVC but a bold leap forward. As developers wrestled with the unwieldy nature of bidirectional data binding, they envisioned a cleaner, more disciplined approach: one-way data flow. Thus, Flux was born. It redefined the MVC Model by splitting its responsibilities into discrete parts—Actions for business logic and a central Store for immutable state.

Flux tells a simple truth: when your app’s complexity threatens to drown you unpredictably, the only salvation is a single, unidirectional data flow.

One-Way Data Flow: The Power of Predictability

Flux resonated so profoundly because it eradicated the tangled webs of traditional data binding. Instead of watching a mutable View-Model for every change, Flux demanded that every update come from a new state—a deliberate, predictable event. This shift resembles replacing a cluttered brainstorming session with a crisp, final copy. Your interface becomes bulletproof, and your logic transparent.

Legacy Meets Innovation

Flux didn’t discard MVC’s legacy; it refined it. The core promise of separating concerns remained, but it was elevated for the modern era. Today’s modern web frameworks—React with Flux, Vue, and Angular—each carry a piece of that DNA. They prove that while technology marches on, the timeless principles of clarity, order, and innovation remain the ultimate drivers of success.

 

The Short Reign of Flux

A quote from the Flux website:

The Flux project is in maintenance mode and there are many more sophisticated alternatives available (e.g. Redux, MobX) and we would recommend using them instead.

Erm... long live Redux!


Yep, it's time to Git Gud in Redux. 

From MVC to Modern Web Frameworks (HackerNoon.com - Robert Zhu)
Quality Weekly Reads About Technology Infiltrating Everything
Fullstack React: Redux and Why it’s Good For You (Mark Erikson, Sophia Shoemaker)
Editor’s Note: We are excited to have a guest blogger on our blog for this post! Mark Erikson (@acemarke) is a software developer and one of the maintainers of the Redux library. He is writing a tutorial series called “Practical Redux”, which covers some tips, techniques, and concepts useful to developers...