Lurker News

Comments (242) 68 threads

Earlier comments
synergy201 reply#
I happened to spend a little more time on htmx this weekend which htmz was inspired by.

htmx/htmz does do well for simple use cases, htmx does well for SSR heavy cases(e.g. django).
in the end I returned to vue.js, with a few lines code(put in a library) I can mimic htmx easily plus all the extra stuff vue.js brings, and no I do not need use a build tool for that, vuejs works fine via CDN inside a html for simple use cases the way htmx does, but vuejs can do more, e.g. draw live chart from data returned via ajax calls where vuejs is json by default, htmx is html by default instead.

angra_mainyu2 replies#
This.

I think Vue.js "scales down" excellently. You can just load it via the cdn and write some widgets and go about your day.
In the past I've tried to make use of "microframeworks" like alpine.js and such but often found myself returning to Vue.js.

synergy201 reply#
same here, spent lots of time poking around, even tried svelte and react.js(heavily), and now firmly back to vue.js.

vue.js does not mix SSR with SPA into one, make it much simpler compare to what React.js is doing today, and it provides way more than alpine.js and htmx etc, it's the best one in practice for me now.

buremba1 reply#
I also started with Vue and switched to React for work but still miss the simplicity of Vue. Sadly, it didn't take off as React.

Continue this thread — 1 reply

niutech#
Have a look at Petite Vue by Evan You.
sublinear2 replies#
This seems likely to have issues with most "Content-Security-Policy" rules because of the inline script in "onload" and the iframe. Makes it a non starter in real world production environments.
tommica#
But isnt it the same exact domain?
morbicer#
Can be imho solved with nonce or hash based policy
internet20001 reply#
Apparently it breaks your back button too.
rnmmrnm1 reply#
If you're talking about the tabs demo, I think it's reasonable for some use cases to respect back button as previous tab. as long as it's easy to opt out.
troupo1 reply#
The inline editing demo also has a separate URL for the "we're editing" state
Kalabasa2 replies#
Yeah it's terrible in some use cases.

If only HTML provided a way to navigate without adding a history entry, like .
If this was a real product i would market it as "Native time travel debugging! Go through your application state as you would go through your browser history!"

Continue this thread — 2 replies

socketcluster1 reply#
Interesting. I wrote a similar plain HTML/WebComponent-based front end for my new no-code/low-code serverless platform https://saasufy.com/

It lets you build just about any data-driven application using only a handful of declarative generic HTML components: https://github.com/Saasufy/saasufy-components?tab=readme-ov-...
I built a chat app with both group chat and private chat (with access control) using only plain HTML; only ~250 lines of HTML markup for the entire thing, no front end or back end code was used: https://github.com/Saasufy/chat-app/blob/main/index.html
You can use it here - All hosted on GitHub pages: https://saasufy.github.io/chat-app/
It would be great to add support for other front end tech like this. I kind of like HTMX (especially as it's declarative). This HTMZ looks interesting. I'd like something with a big community and more components to handle more advanced cases (e.g. higher level components like calendars).

torgoguys1 reply#
>I built a chat app with both group chat and private chat (with access control) using only plain HTML; only ~250 lines of HTML markup for the entire thing: https://github.com/Saasufy/chat-app/blob/main/index.html

I think I know what you mean, but we clearly have different definitions of "plain HTML." Mine wouldn't involve 9 javascript files. :-D
Either way, I'm interested and will check out what you made!

socketcluster#
Ah yes good point. By plain HTML, I meant apps which can be assembled without custom JavaScript logic needed.

Load more comments