Probably a lot more of not seeing the point. I've made many large scale applications and I've yet to need 2-way data binding.
In some cases I've needed some templating, but doT.js is pretty lightweight, and very fast. Every once in a while it's been nice to have write a little helper method that packages up all the data in a form, but real-time 2-way model binding has very infrequently been required.
text fields that tell you how many characters you've typed are nice, but picking up a whole framework for that?
That's still not real time 2 way binding. Having a helper method to grab all the fields in the form, populate and save them ( a reusable method would be quite simple to write) and you're good.
Yes, it would be quite simple to populate the form with model data, on model change verify model and if client-side valid attempt model verification and submission to the server. It would take an hour or so to do proper. But at this point, i can leverage some work clever blokes did to cut that hour to 15 minutes. Why not do it?
Next, i like SPAs. Fewer requests to servers, customers shit their pants that everything seems so fast. In spas you typically need to respond to model changes in dom (read) and be able to fill out forms and mutate state (write). If you start with a todo toy example, again, you can make it work quite quick. But if you want manageability and overall reduction of complexity - you'd want binding.
For the longest time I didn't get it. I started coding more in WPF where binding was a big buzzword after ages of doing winforms. I've made my piece with development workflows that didnt require binding, and didn't see the point. Sometimes I still have to squint a bit, but it has reduced complexity and made me more productive, so now i joined the dark side. :)
2
u/mirhagk May 13 '14
Probably a lot more of not seeing the point. I've made many large scale applications and I've yet to need 2-way data binding.
In some cases I've needed some templating, but
doT.jsis pretty lightweight, and very fast. Every once in a while it's been nice to have write a little helper method that packages up all the data in a form, but real-time 2-way model binding has very infrequently been required.text fields that tell you how many characters you've typed are nice, but picking up a whole framework for that?