|
|
|
|
|
by jagged-chisel
15 days ago
|
|
What does the binding look like in source code? Do we hand-code every UI field with the code that updates the local model and then transmits it to the backend? Or is there a way to make the boilerplate as small as possible, relying on one bit of code to handle synchronization between UI, local model, and server? “Using WebSockets” doesn’t bind an interface element to its source of truth; it’s just the chosen transport to move the data. I’ll be sticking with a RESTy interface. But that doesn’t matter because the question is how is the binding implemented so that fewer mistakes are made synchronizing the data? Hand coding every field’s binding logic is going to be error-prone. |
|
It is as simple as I am suggesting, but only if you have actually done it yourself more than once. Whether or not your application is error prone is entirely on how you execute regardless of the tools in your toolbox.