DEV Community

loading...

Discussion on: Why svelte is revolutionary

Collapse
hanna profile image
Hanna Author

That's the main point of the template section of the article :p

Collapse
atomzwieback profile image
Atomzwieback

then may i should invest more than 5 minutes and take a closer look at the site

Thread Thread
hanna profile image
Hanna Author

I personally prefer all the stuff in the same file, but that's just more of a preference

Thread Thread
atomzwieback profile image
Atomzwieback

Its ok in a small project but if youre working on large enterprise software which produces a lot of income, you want the code base as understandable as possible in less time.

Thread Thread
hanna profile image
Hanna Author

I find them equally understandable, but not everyone does.

Thread Thread
pabloabc profile image
Pablo Berganza

Isn't that the objective of Svelte? It's perfectly understandable on bigger projects. A single .svelte file is a single component. Whatever CSS or JS that's in it handles the styling or behavior of that specific component (scoped styling). Then you build your app using those building blocks. It seems more understandable than having them all in separate files.