News for hackers. Stuff that matters.
Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by flowerlad on Sunday February 15, 2026 @05:12PM (#47028191)
MVVM was invented by Microsoft for 2-way syncing in WPF. Today we know 2-way syncing is a mistake.

Who uses MVC in 2026? Pretty much every framework out there, including Java frameworks and Python frameworks and .net

Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by ozim on Sunday February 15, 2026 @06:19PM (#47028796)
You have any more sources on MVVM being a mistake?

I found WPF rather nice to work with. Same with knockout.js and Angular I don’t see much downsides.

Everyone can write bad code of course in each of them but I think it was working quite well.

Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by lateforwork on Sunday February 15, 2026 @07:22PM (#47029312)
When React launched in 2013, its defining idea was strict one-way data flow: parents pass data down via props, and updates happen in a clear, explicit place. Children can't mutate parent state directly; they signal changes through callbacks. The result is predictable, traceable state changes.

This contrasted with MVVM frameworks like early AngularJS, Knockout, and WPF, which relied on two-way data binding. That automatic syncing felt convenient for small apps, but at scale it often led to hidden coupling and hard-to-trace update chains.

Over time, many developers came to view pervasive two-way binding as a design mistake in complex systems. React's unidirectional model gained traction because it favored clarity and control over "magic."

Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by ozim on Monday February 16, 2026 @01:47AM (#47031672)
Thanks GPT but I know all of that. I was expecting some eye opening new evidence because person I was asking seemed really confident and using strong words.

But that’s just generic „blablabla”. MVVM is not a mistake and is still plenty useful.

Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by lateforwork on Monday February 16, 2026 @12:25PM (#47037668)
If it is useful for you then it is not a mistake. For you.
Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by aloisdg on Sunday February 15, 2026 @07:03PM (#47029173)
Isn't Vue also MVVM?
Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by ozim on Monday February 16, 2026 @01:58AM (#47031744)
Yes VUE is quite a descendant of knockout.js.

People confidently write strong opinions on the internet.

Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by recursive on Sunday February 15, 2026 @11:39PM (#47030955)
I've heard many people assert that 2 way binding is a mistake, but I didn't think it was settled. It still seems simpler to me than so called uni-directional data flow.