Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
deniz-a
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
1.
▲
Missing.css 1.2.0
(missing.style)
1 points
by
deniz-a
1y ago
|
0 comments
2.
▲
by
deniz-a
2y ago
Are you talking about the specs? The stuff on https://www.w3.org/WAI/ARIA/apg/ seems pretty scrutable to me. As for "real screen readers", yeah. There needs to be a caniuse.com for assistive technol
3.
▲
by
deniz-a
2y ago
that classlist example won't work: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenLis...
4.
▲
by
deniz-a
2y ago
The "structured data with programmatic access methods" sounds a lot like microformats2 ( https://microformats.org/wiki/microformats2 ), which is being used quite successfully in the IndieWeb community to drive
5.
▲
by
deniz-a
2y ago
The server-rendered web app (without htmx, think crusty PHP router admin panel) is actually very similar to the Elm architecture. The database is the Model. The server is the update function. The HTML template is the view function. HTTP req
6.
▲
by
deniz-a
2y ago
Co-author here. We rewrote the book in Typst. On the hypermedia.systems website, the new EPUB ebook release is built from the new codebase. I'm working on a blog post with details on why we switched and what the process was like. The c
7.
▲
by
deniz-a
3y ago
If users are expected to spend a long time and use many tools to compose something, then I agree a full page form is best. For something like adding to a todo list, or where users are expected to add many items one after the other, a modal
8.
▲
by
deniz-a
4y ago
It's not trying to compete with Next, but advertising how Deno's similarity to the browser and being able to run on CDN-like networks (which i refuse to call "the e*ge") can let you build a better version of Next's
9.
▲
by
deniz-a
4y ago
In the sample code, there is no "streaming" going on -- the server simply uses the client code as a template to generate HTML and sends it as a normal HTTP response. In pseudocode: import "client.js" as client
10.
▲
by
deniz-a
4y ago
If you're writing a web app that only works in a browser you control, then no, you won't benefit from hypermedia. The rest of us like search engines being able to index our sites though.
11.
▲
by
deniz-a
4y ago
> there are no clients which can use it ... HyperCard?
12.
▲
by
deniz-a
4y ago
1. The best way to avoid creating an explosion of states is [Locality of Behavior]. Elements should avoid targeting other elements that are not inside them, especially those written in different templates. Sometimes this is unavoidable (i.e
13.
▲
by
deniz-a
4y ago
If I was to test things that were part of UI code, but were still "mechanical" enough to test automatically, I would throw responses into an HTML parser to make sure I'm presenting the right data. (In a way, HTML strings are
14.
▲
by
deniz-a
4y ago
Hyperview only uses React Native for its cross-platform widgets. (I wish Flutter had been used instead). You don't need to touch it unless you're writing custom elements.
15.
▲
by
deniz-a
4y ago
> The book segment header links (in italic [0]) serve raw html Fixed! (It worked fine in the dev server...)
16.
▲
by
deniz-a
4y ago
Thanks for the heads up. Added a temporary one for now while I figure out how to do per-page titles in my SSG setup
17.
▲
Show HN: Missing.css: The Missing CSS Stylesheet
(missing.style)
28 points
by
deniz-a
4y ago
|
2 comments
18.
▲
by
deniz-a
4y ago
Client side validation does not protect against that. You can't prevent people from making requests to your server without your client, i.e. `curl https://example.com/api --data 'dkfjrgoegvjergv'`.
19.
▲
by
deniz-a
4y ago
The way I think about it is htmx takes the "full page refresh" user experience & programming model, and expands it to "partial page refresh" and goes from there. It also patches some annoying gaps in html, like forms
20.
▲
by
deniz-a
5y ago
This might be it https://discourse.wicg.io/t/extending-html-as-a-hypermedia/5...
21.
▲
by
deniz-a
5y ago
Most of what htmx does is a direct extension of the browser's capabilities. Some issues I can think of are - maintaining the "accessible by default" nature of HTML - swapping. htmx takes html from the server and uses one of i
22.
▲
by
deniz-a
5y ago
People have done plenty of useful things with htmx, just like people did (and some continue to do) useful things with links & forms. Here's the example that's most convenient for me to pull up: https://www.youtube.c
23.
▲
by
deniz-a
5y ago
The pattern is that you use htmx for anything it can do, then use Alpine for things that shouldn't/can't require a server round-trip (toggling sidebar, animations etc). You can reimplement htmx functionality with Alpine, but
24.
▲
by
deniz-a
5y ago
> API returning [...] HTML The endpoints that return endpoints are not API endpoints, they are UI endpoints like `/index.html` or `/login` or `/Results.aspx?id=3984272`. Now you can have `/login/email` or `/
25.
▲
by
deniz-a
5y ago
You don't return HTML from API endpoints, you return it from your UI endpoints. You could reuse those for JSON with content negotiation, or have a frontend server+backend server setup where the backend server is also a public API, or s
26.
▲
by
deniz-a
5y ago
Thankfully, we have arithmetic expressions :] Every command has an initial verb, which makes parsing easier (both by computer, and hopefully by people). Just for fun, here are your examples in hyperscript: get numA / numB then pu
27.
▲
by
deniz-a
5y ago
For a trivial example like fading out, you're right, but if you want to make dynamically generated animations, hyperscript's features are very helpful (The Web Animations API is a boon, but browser support isn't there yet). S
28.
▲
by
deniz-a
5y ago
Arrow functions have the same `this` as the scope where they are declared (in this case, an onclick attribute). Both would work in this case.
29.
▲
by
deniz-a
5y ago
Thanks for reporting, fixed.
30.
▲
by
deniz-a
5y ago
Yep, you can have an `on fetch:error` clause in the element's script. Wrt. formatting the response, I'm experimenting with a hyperscript template language [1]. However, we don't yet have a design for imperatively building DOM
More ›