Hacker News new | ask | show | jobs
by clownworldclown 1635 days ago
contrary to most of the comments I'm in full agreement with the hypermedia approach. This is an exciting development, especially with hyperscript!

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.

2 comments

I agree as well.

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.

Although a multipage text editor would be rather charmingly annoying.
That sounds like a charming mess.

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.

I'm surprised you chose to shelve the project after looking at Svelte, as it's by far the simplest framework compared to its contemporaries (React, Vue et al.)

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!