Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
t8sr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
271.
▲
by
t8sr
4y ago
Speaking of replacements, this is my big complaint about Rust's type system - it has no replacement for templates. Instead, it has two ways of doing parametric types like matrices: 1. Using the type system, as seen in e.g. nalgebra ( h
272.
▲
by
t8sr
4y ago
Yes, I am implicitly assuming that eventually someone will connect to it as an API, not just to directly render the HTML but to machine-process it.
273.
▲
by
t8sr
4y ago
But if you disable JavaScript, then htmx won't work either, right? And how is it lower cognitive load? You have to learn JavaScript, but now you also have to learn htmx. I don't call that a win. Code is read by a lot more people
274.
▲
by
t8sr
4y ago
But all of those things are trivial. Are we going to next get a library that lets you declaratively specify string operations and integer multiplication? Why not write a dozen variants of 5-10 lines of readable Javascript? What's the
275.
▲
by
t8sr
4y ago
But you can already do that. I was doing it in the 90s, Ruby on Rails supports it, etc. Just send the HTML if you want to and call `el.innerHTML = response.body`. The false dichotomy here is that it's either htmx or React. Why not... n
276.
▲
by
t8sr
4y ago
Yeah, but why? Why is it better to remember a bunch of attributes than to remember 3-4 javascript functions?
277.
▲
by
t8sr
4y ago
This idea used to be called microformats. The premise was that you send an HTML snippet, and all the semantic attributes plus a protocol definition will let you parse it as either data or a part of the UX. It's self-documenting in the
278.
▲
by
t8sr
4y ago
> You can use the swap data attribute to update several fragments (imagine a saved icon) in several places declaratively. Yeah, but why? The javascript snippet to accomplish the same is absolutely trivial and avoids a dependency. > Th
279.
▲
by
t8sr
4y ago
I've looked at a few of those and I still don't understand. Also, hilariously, several of them are already broken. (Like the table one that's not updating.) EDIT: Sorry, nevermind. The Bulk Edit example does work, I think it
280.
▲
by
t8sr
4y ago
Yeah, that I understand. I am not a huge fan of sending JSON that's not backwards compatible. Sending HTML is probably a good choice for some applications, but that was already well supported 20 years ago. Why is htmx better than one l
281.
▲
by
t8sr
4y ago
Replying to myself: I guess the main point of this library is to use HTML as the protocol payload between serve and client, instead of JSON. I can see the benefit of doing that, although I have a bone to pick with the condemnation of all da
282.
▲
by
t8sr
4y ago
I'm confused about what value this adds. The introductory example is certainly not helpful, as it takes an `<a href="/blog">Blog</a>` and turns into 7 lines of markup to accomplish the same thing. (And t
283.
▲
by
t8sr
4y ago
The reactions to this article don't surprise me, but they do make me sad. People seem really cynical about what we have no reason to believe is anything other than an honest request for some common sense. This kind of attitude - trying
284.
▲
by
t8sr
4y ago
Meh, it worked at Google for a really long time, and only broke down around 50,000 employees. "Spend money like it's your own" was literally in the T&E policy and people understood it to mean "be reasonable, but also
285.
▲
by
t8sr
4y ago
I am not sure how much I can say, because I used to work there. But I think it's OK to say many Google engineers don't particularly like Angular.
286.
▲
by
t8sr
4y ago
I feel qualified, because I’ve been a SWE for 20 years, have worked in lots of domains (including web, sometime ago) and so I feel I am able to draw comparisons. Not for nothing, but when I wrote a couple of web apps recently (most recently
287.
▲
by
t8sr
4y ago
This used to be true but isn’t anymore. For a while they pushed Angular, nowadays I think a lot of teams are using react. GWT is long deprecated and gone.
288.
▲
by
t8sr
4y ago
Chrome on an M1 Pro Mac. This is the number that Chrome’s task manager shows me. I do have a lot of emails, but I think it should only have to worry about 100 of them at a time, so I don’t know why it’s different for me and you. It is possi
289.
▲
by
t8sr
4y ago
You can say that about any engineering problem and be right 99% of the time. Because it’s always true, it’s not a super useful analysis. Somehow, software on embedded, the kernel, graphics, flight control, etc. is all developed by equally l
290.
▲
by
t8sr
4y ago
I really don’t agree. When I worked at Google, I filed a couple of bugs for memory leaks in the new gmail, and to my knowledge they still haven’t been addressed two years later, because there are a million dependencies and the thing is so c
291.
▲
by
t8sr
4y ago
Yeah, I agree - the old version of gmail was perfectly reasonable. But the current version is IMO representative of trends in web dev. Google is both influential and tends to follow the recent trends. Gmail is by no means unique - every web
292.
▲
by
t8sr
4y ago
According to my browser, the default view in gmail needs 8.32 MiB of javascript spread over 90 files to render. While IDLE, the gmail tab uses 10-30% of an M1 CPU core. That stuff is not down to tracking - it's because the damn thing k
293.
▲
by
t8sr
4y ago
AJAX in early Gmail was a massive improvement. It was mostly hand-coded javascript in a relatively thin page and it was the sweep spot. Today's version of gmail is the most bloated pile of spaghetti framework code imaginable and is far
294.
▲
by
t8sr
4y ago
> However, it's also true that the baseline expectation for web experiences is a lot higher in 2022 than it was in 2009 in terms of the level of responsiveness, interactivity, and overall "app-like-ness", to the point wher
295.
▲
by
t8sr
4y ago
Alternatively, web developers could calm down and just write mostly HTML with some plain javascript where warranted. I've recently done some web development for the first time in 12 years, and I was horrified at all these pointless fra
296.
▲
by
t8sr
4y ago
Like, I'm sorry, but this has no connection to anything in mainstream physics. There is no indication that causality is connected to observation. You appear to think that "observation" is a process involving awareness, which
297.
▲
by
t8sr
4y ago
(Disclaimer: physics undergrad.) I honestly wish we could get away from the word "observer" - it's more or less a historical accident and it probably confuses more than it helps. Talking about coherence and [decoherence]( htt
298.
▲
by
t8sr
4y ago
Here's my hypothesis: the quantum flux remains in a state of zero-point energy superposition until the power of quantum consciousness emerges through dark energy chaos and acts to select from the multiverse of madness the timeline curv
299.
▲
by
t8sr
4y ago
It’s interesting that we have such different experiences. When I had to get a residence permit in Zurich 9 years ago, the process took one visit to the Kreisburo, they spoke English and I was out the door in 15 minutes. Maybe the system got
300.
▲
by
t8sr
4y ago
AFAIK the strength of German SMBs is often overstated. When you look at what's been driving economic growth, it's mostly been creating new, large companies like Google and Amazon. Germany used to be good at doing that: SAP, VW, ma
More ›