Skip to content

Why two-way binding isn't bad... #4403

Closed
@mikebeaton

Description

@mikebeaton

The project already has a couple of issues suggesting potential blog posts... so, veeery tentatively, I wondered if it was OK to post here a suggestion for what seems like an obvious additional one.

The issue, as far as it goes, is discussed (e.g.) here - which contains a useful timed link to this - or here (amongst, of course, many other similar discussions). These are reasons why a dev might come to believe that two-way binding is 'bad'.

In ever so slightly more detail, Svelte 3 templates certainly do look lovely, terse and easy to read and write, and yes, it does seem that two-way binding (which is part of that) is much quicker and easier for prototyping and for small apps. But the types of discussions linked above seem to strongly indicate that two-way binding doesn't scale (is no longer predictable, or easily debuggable) in (medium to?) large scale apps.

It certainly seems that Svelte doesn't see this as a problem. Perhaps the reason for this is hinted at above: is Svelte only aimed at small (to medium?) scale apps? Or perhaps the Svelte project believes that two-way binding used correctly can and does scale? (Or, of course, any number of other reasons I haven't thought of!)

(#2546 is also about scaling, but a different issue)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions