Hacker Newsnew | past | comments | ask | show | jobs | submit | modal-soul's commentslogin

I like this article a lot more than the previous one; not because of length.

In the previous article, I was annoyed a bit by some of the fluffiness and redefinition of concepts that I was already familiar with. This one, however, felt much more concrete, and grounded in the history of the space, showing the tradeoffs and improvements in certain areas between them.

The section that amounted to "I'm doing all of this other stuff just to turn it into HTML. With nice, functional, reusable JSX components, but still." really hit close to how I've felt.

My question is: When did you first realize the usefulness of something like RSC? If React had cooked a little longer before gaining traction as the client-side thing, would it have been for "two computers"?

I'm imagining a past where there was some "fuller stack" version that came out first, then there would've been something that could've been run on its own. "Here's our page-stitcher made to run client-side-only".


Sounds like another one of Dan's talks, "React from Another Dimension", where he imagines a world in which server-side React came first and then extracted client functionality:

- https://www.youtube.com/watch?v=zMf_xeGPn6s


Great talk, thanks for reminding me about this Mark!


In order to get value out of Tailwind, you need to be using a templating language that lets you create reusable components. So in this way, you are not repeating the 7 classes each time you need a card, but just using the component.

This is also makes "zombie CSS" a thing of the past, since the resultant CSS file that tailwind generates is based solely on what is in use.


isn't this exactly what CSS is meant to solve originally?

Write a class & map it to the relevant component or DOM node in a template, so you only have a single source of truth to maintain the styles of that component.

Writing the explicit style declarations directly to the DOM nodes themselves is precisely what _prevents_ portability and reusability.

The perf issue of "zombie css" is seldomly an issue in my experience: if it really impacts your load time or perf, you can still easily serve subsetted stylesheets at build or request time

If the perf impact is negligible, you might in turn profit from serving all the css at first, since it will be cached and accelerate subsequent request or rehydration

Removing unused CSS is mainly a concern for _inline_ styles, since the bloat of the initial HTML might impact FCP and repaints/reprocessing once additional stylesheet are loaded.

... which ironically also means that adding truckloads of utility classes to every DOM node might introduce quite some initial load & paint performance implications aswell, depending on your app.

It might even be interesting to benchmark if a stylesheet with a bunch of "zombie css" really has more perf impact than serving a minmaxed css file, but requiring dozens of classes on every other DOM node to be processed for painting

it's not a file size game in the end, the amount of selector statements & DOM nodes they might apply to has much larger paint perf impact than a few kb of unused gzipped text


This is not true. If your sync function loops until the value is set, then the Promise will never resolve, since it never yields to the event loop.


I made friends with someone else who kept circling around. The look of it reminds me of Boku no Natsuyasumi.


The only things that have significantly bugged me are the lack of a background app area by default and how they hide path editing in the file browser behind Ctrl + L.


My teacher used the following short story:

The negative boy couldn't decide if he wanted to go to the radical party. So he decided to be square, missing out on 4 awesome chicks. It was all over by 2 AM.


My chemistry teacher had a similar acronym for remembering which of the anode and cathode where positive and negative.

Penises are not cunts.


If LiveView is backed by PubSub, then I think you can offload persistence to Redis.


LiveView in its standard configuration does not use Redis, it uses built-in Erlang distribution. But you can use Redis if you want to or if direct connections between nodes aren't possible.


Ruby's refinements sound somewhat similar; they let you scope your monkey-patches.


Gell-Mann amnesia effect: https://en.wikipedia.org/wiki/Michael_Crichton#GellMannAmnes...

> In any case, you read with exasperation or amusement the multiple errors in a story, and then turn the page to national or international affairs, and read as if the rest of the newspaper was somehow more accurate about Palestine than the baloney you just read. You turn the page, and forget what you know.


It baffles me that the Gell-Mann Amnesia effect still doesn’t have it’s own Wikipedia page given how pervasive it is.


It was not included in this announcement, but Shippable (purchased by JFrog in Feb. 2019) is being shut down as well.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: