@natera That's why I love Svelte: all the business code lies in the business, being normal JS or TS, and Svelte templates are what they're called: templates
(well, actually, they're called components, but just like with Vue3, there's a clear separation between the JS/TS code, the HTML template, and the CSS code, and it's amazing)
Another advantage of Svelte is that there is not a big amount of "custom HTML components". Either a ":" and it's visibly svelte-specific, all the rest is pure HTML.
@natera That's something I didn't really like with Vue or Angular (and that I don't like with htmx): the "classic" prefixing of HTML attributes IMO prevents the clear JS interaction we need with our components, and it implies "eval"-ing the statements in our heads, while old-school templating is just easier to read.
Svelte is a good compromise between templates in full-TS/TSX (React) and full-HTML (Vue, Angular, or htmx)
@pheonix Yes! And when I mentioned HTMX and Django to one guy at work, he said “looks nice for a personal project, I don’t think it would work for something big and serious” I feel that at some point we confused complexity with seriousness 🤷♂️
Add comment