Re:The Reactive Monolith – How to Move from CRUD to Event So...
by 88913527 on Wednesday September 29, 2021 @11:01PM
(#28702713)
This is exactly why 2-way data binding fell out of favor in modern UI development. Describing the problem as "the cardinality of the state of the system extremely large" is a succinct way of putting it. The non-linear increase in possible state quickly makes testing an uphill battle. And it's over when you can't have a comprehensive testing strategy, forget about it.
[ Parent
| on HN ]
Re:The Reactive Monolith – How to Move from CRUD to Event So...
by Spivak on Wednesday September 29, 2021 @11:43PM
(#28702957)
Eh, two-way binding is still alive and well it’s just implemented explicitly on top of one-way bindings. It seems most developers find this easier to reason about but the relationship is still there.
Like if all you’re doing is using the event to take the value from the UI and shove it into the model with setState and re-render then you made a two-way binding.
Wouldn’t it be helpful if you could tell React to just do this for you and save you the boilerplate? Boom you invented ng-model.
Re:The Reactive Monolith – How to Move from CRUD to Event So...
by square_usual on Thursday September 30, 2021 @12:10AM
(#28703090)
2-way bindings are still alive and well in the big "next gen" web frameworks, Vue and Svelte.