by clownworldclown · 4y ago · 0 comments
I actually attempted to make a "simplified" "js" framework (where you just had some html tags and it did things for you) for tasks congruent to alpine (since I found alpine rather complex, or that it comes with so much but you still have to do a good amount of work to get things working) but I'm not as savvy; using the DSL you all have in hyperscript is real smart, simple.
Not too long ago I looked into using Svelte for a one-off project (since it was the highest rated framework at the time) which then prompted me to look into the current state of web development.
It's absurd, and left such a sour taste that I just shelved the project for another time.
Great stuff you guys got going here, it makes me excited to see what'll turn into in the future! Looking forward to trying this out later.
SPAs might be the right approach for specific applications that are actually applications (e.g. text editors, Jupyter notebooks, chat and other web apps) but more generally the web is designed from the ground up to work well with separate pages representing separate resources.
Each keypress would direct you to a new URL derived from a hash of the new text, an approach that takes advantage of browser history to provide a built-in undo function. Fans of this “content-addressable text editor” say it reminds them that writing is ultimately a grand exploration of Borges’ Library of Babel.
For example, here is a fully functional Svelte component:
``` <h1>Hello world!</h1> ```
And here's another one that adds a bit of design:
``` <h1>Hello world!</h1>
<style> h1 { color: red; } </style> ```
I wouldn't call it particularly hard!