Recent submissions

Comment · 10 months ago
Haven’t tried them but I can see these features being really useful for screen reader users.
Comment · 11 months ago
I'm a React dev and have been mentoring a junior. React's hooks, when and why they run, is very unintiuative for them. Skill issue is part of it, but React's immutable prop diffing forces the use of hooks and understanding how the framework uses them. Moving to a re-render model which always rebuilds the vdom tree allows callbacks, state to be defined outside of the render method without framework abstractions wrapping them. I'm not familiar with what Remix is doing but it looks a lot like Mithril.js, and working with Mithril is really enjoyable after working with React for as long as I have.
Comment · 11 months ago
I like the safety aspect of QUERY. Having CDNs cache based off the semantics of the content might be a hard ask. I wonder if this might lead to a standards based query language being designed and a push for CDNs to support it. Otherwise you probably need to implement your own edge processing of the request and cache handling for any content type you care to handle.
Comment · 11 months ago
GET is a keep things simple stupid approach to caching. The URL is the cache key plus any headers touched by the vary header. Adding the requirement to vary on the body and understand the body content semantics brings in a whole lot of complexity that GET avoids.
Comment · 11 months ago
I find the semantic web stuff is really interesting but it seems to have more success where there are complex up-front data modeling and collaboration requirements, maybe between orgs. There is a Genome database out there for semantic web and I've heard of banks using it in complex fraud detection systems.
Comment · 1 year ago
The URL is not a HTTP method.
Comment · 1 year ago
Comment · 1 year ago
I'm working on a personal project with this right now. Closure components FTW.
Comment · 2 years ago
I tried solid and I didn't find it intuitive. Having your data behind proxies introduces more ceremony when splitting / combining props. I felt I was just moving the trade-off React makes when feeding a deps list to hooks to a different location. The proxies also made things hard to debug and you have to be careful about the language features you use with them.

I also have often have smaller deps lists in React's useEffect when wanting to call a callback on the props because of some local state changes. I wouldn't want the effect to fire because the callback changed however. I'm not sure solid even supports that in its createEffect since it is all automatic.

Comment · 2 years ago
Are you against using something like json-ld, hal,... for embedding links? Adding arbitrary hx- attributes to html which require a javascript application to make use of comes across as un-RESTful as doing so in json to me.

Not saying you have to prefer it, but some of the htmx articles imply there is a difference.

Comment · 3 years ago
Comment · 3 years ago
That looks like a better way of doing it.
Comment · 3 years ago
No idea
Comment · 3 years ago
Comment · 3 years ago
That doesn’t describe mithril which is on the list though

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton