Replies: 3 comments 6 replies
-
Plus, with a multi-tab editor opening several pages, all tab labels are the same '+page.svelte' ... sigh |
Beta Was this translation helpful? Give feedback.
-
One workaround, if you're using VSCode, is to change the setting |
Beta Was this translation helpful? Give feedback.
-
I recently read saw this article in "What's new in Svelte": https://dev.to/devpunk/how-to-make-declarativecode-based-router-instead-of-file-based-router-in-sveltekit-2-3dd4 I won't try it but you could give it a shot. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I just started experimenting. At the beginner level all is good so far.
But... this +page, +layout and so on system. It takes out half the joy.
It creates vastly unnecessary cognitive load. Especially for newcomers.
I read about the reasoning. But idk routes is a consistently used information piece. So it means you will always have this frustration. No matter what mental trick you gonna use. Because you always need to reference it in mind:
FILENAMES
[[[ +page.server.js => /somedirectory ]]] ----------> /somedirectory/+page.server.js
+page.svelte => /somedirectory ----------> /somedirectory/+page.svelte
vs
[[[ /_somedirectory.svelte ]]] ----------> /somedirectory/_somedirectory.svelte
/_somedirectory.server.js ----------> /somedirectory/_somedirectory.server.js
[[[ info to keep in memory ]]]
Always need to keep in working memory what directory I'm working because these filename are absolutely useless. And afak working memory in programming is prime real estate.
PLUS SIGN
And plus sign is very intrusive. Its way more pixels than underscore. and therefore more obstructive.
My point is - its all about cognitive load of the feature that is FREQUENTLY used.
Beta Was this translation helpful? Give feedback.
All reactions