- 03 December, 2016 07:43
Frameworks like React solved the productivity problem of how to build rich, complex applications without creating a "pile of unmaintainable spaghetti code," said Harris. And the front end community abandoned old ideas about separation of concerns and embraced a component-driven mindset. But this has come at a cost to users.
Svelte's compiler detects which features a component uses by analyzing source code. "If a feature isn't being used, Svelte doesn't include the code for it," said Harris. "You end up with exactly what you need." The framework also offers advantages in code-splitting and supports capabilities like SVG and encapsulated CSS.
There still is plenty of work left to do on Svelte, Harris cautioned. It must be fitted with capabilities like server-side rendering and be integrated with existing tools, and he wants to add features like declarative translations.