Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yawaramin
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
151.
▲
by
yawaramin
10mo ago
'The original microservices'
152.
▲
by
yawaramin
10mo ago
For fun, I did the same for OCaml: Ex 1 let say = "I love OCaml" let () = print_endline say (* Requires linking in the 'str' library *) let say = Str.replace_first (Str.regexp {|\(.*\)love\(.*\)|}) {|\
153.
▲
by
yawaramin
10mo ago
See https://rakujourney.wordpress.com/2025/03/30/the-harc-stack/
154.
▲
by
yawaramin
10mo ago
I am assuming that if the user selected a specific brightness mode, they want sites they visit to respect that theme. Call me crazy but this seems like common sense.
155.
▲
by
yawaramin
10mo ago
One would think so, except we are constantly seeing people creating React apps that should have been a few simple HTML files and some JS.
156.
▲
by
yawaramin
10mo ago
That's why you just have the HTML in the backend server codebase...which can also make sure it's cached properly with HTTP caching techniques like last modification time, ETag, and so on.
157.
▲
by
yawaramin
10mo ago
The 'often loaded' static html won't help if the 'often loaded' JS bundle is re-deployed (eg, when the devs make a 'small' change) and the cache is invalidated. In that case all the users will be forced to
158.
▲
by
yawaramin
10mo ago
Which browsers are not doing this?!
159.
▲
by
yawaramin
10mo ago
https://htmx.org/examples/active-search/
160.
▲
by
yawaramin
10mo ago
See this subthread https://news.ycombinator.com/item?id=46315559
161.
▲
by
yawaramin
10mo ago
It doesn't have history support out of the box. I consider that essential for hypermedia apps. When I'm loading fragments into my page I need to push the URL of the fragment I just loaded so the user can reliably come back to that
162.
▲
by
yawaramin
10mo ago
> it genuinely does make the...users happy But you have no idea if it does that, you just have the word of the PO who's not actually building anything, they're at best just copying what others are doing (ie being derivative) or
163.
▲
by
yawaramin
10mo ago
There is a cohesive view, vision, and agreement in web dev: HTML, CSS, and JavaScript. There are web standards, web APIs, and accessibility requirements. Everybody builds on top of that.
164.
▲
by
yawaramin
10mo ago
Htmx is not a framework. It doesn't dictate a 'right way' to do anything. If you are interested in idioms that work well in practice, refer to the book that the htmx people wrote: https://hypermedia.systems/
165.
▲
by
yawaramin
10mo ago
That's why you need something that lets you componentize your templates. React did this really well with JSX. But classic-style templating languages are not great at this. Django just recently introduced a 'partial templates'
166.
▲
by
yawaramin
10mo ago
This should be the issue at hand. Browsers shipping unfinished, sub-standard UI widgets should be a bigger concern for everybody than the random Joe Framework of the week not re-implementing the same widgets.
167.
▲
by
yawaramin
10mo ago
Thanks. I love it when people make incorrect claims, I reply with corrections, and get condescending comments in return.
168.
▲
by
yawaramin
10mo ago
Perhaps Firefox should focus on shipping a good native datepicker instead of trying to put AI in the browser.
169.
▲
by
yawaramin
10mo ago
See https://dev.to/yawaramin/handling-form-errors-in-htmx-3ncg
170.
▲
by
yawaramin
10mo ago
> it's actually specifically for server-rendered content and using it for front-end development doesn't actually add much It's for server-rendered content that can be used to build a frontend app. I know because I've
171.
▲
by
yawaramin
10mo ago
Yeah, https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/...
172.
▲
by
yawaramin
10mo ago
Nope, in that case all you need is an htmx out-of-band swap to update two different parts of the page.
173.
▲
by
yawaramin
10mo ago
And execute commands remotely on your server, for example to install crypto miners...
174.
▲
by
yawaramin
10mo ago
Why use any library, ever? Why not just reimplement the wheel yourself every time then?
175.
▲
by
yawaramin
10mo ago
Invokers don't give you what htmx gives you out of the box. If you want to, for example, have an invoker command to fetch a resource and swap it in to the page, you have to write custom JS for that. That's the thing that htmx give
176.
▲
by
yawaramin
10mo ago
It's much smaller than the final bundle size that most sites will end up loading.
177.
▲
by
yawaramin
10mo ago
I think you mean 1181b, not kb
178.
▲
by
yawaramin
10mo ago
iOS Safara user here. The viewport jumped for me only on the active search demo and only the first time when the result content was initially loaded. This can be easily fixed by having a fixed-size results box loaded from the beginning.
179.
▲
by
yawaramin
10mo ago
You know, there was a time when returning Hypertext Markup Language over Hypertext Transfer Protocol was considered a normal thing.
180.
▲
by
yawaramin
10mo ago
What are you guys talking about. It automatically redirects to the HTTPS version and the cert is signed by Let's Encrypt.
More ›