Hacker Newsnew | past | comments | ask | show | jobs | submit | hunterloftis's commentslogin

My takeaway from the read wasn't that it was trying to convince anyone to take any particular action, and even emphasized that the mediocrity of AI output as more people use it will be a benefit to the smaller number of people doing their own thinking.

> It'd be perfect it just had a switch to inherit everything the page already has.

It does! <https://lit.dev/docs/components/shadow-dom/>

By default, Lit renders into shadow DOM. This carries benefits like encapsulation (including the style encapsulation you mention). If you prefer global styles, you can render into light DOM instead with that one-line switch.

However, shadow DOM is required for slotting (composing) components, so typically what I'd recommend for theming is leveraging the array option of each component's styles:

    static styles = [themeStyles, componentStyles]
Then you define your shared styles in `themeStyles`, which is shared across all components you wish to have the same theme.

I also made a simple lib to make it easy to implement common styles in your Lit components:

https://github.com/gitaarik/lit-style


oh nice! I didn't know that you can just make it use light dom.

  protected createRenderRoot() {
    return this;
  }
And that's what it takes! I like using tailwind/utility classes so for the styles I'd need to have layers of compiled css files rather than one giant one.

The major downside of using light DOM is that elements cannot compose neatly since there's no delineating between what the component itself rendered and child content.

When you need to re-render your component, how does the component know not to replace the child content you rendered, Vs the child content it rendered into the light DOM. That's why the shadow DOM and slots were necessary, because then there's no intermingling of your content Vs the component's

This may not be a problem if you don't intend to compose your components. But if you do you will hit limits quickly


That sounds like possibly a configuration issue rather than strictly performance (although I agree the symptom is worse performance). For instance, specifically the value "~60fps" vs something as high as 400fps sounds like running with vsync enabled vs. with it disabled.


Hey, I worked on this & totally agree - I want my tools to be editors, not slot machines.

My focus has been on the beta "Edit" feature, tucked away into the top-right when you're looking at a single image. It lets you directly manipulate the image as both a spatial canvas and a semantic structure.


TIL, thanks!

I still am not willing to migrate browsers in order to use Bing, however.


I fondly remember locally-executing software with local persistence by default.

To provide a counterpoint, though, during that time my entire family shared one desktop PC. Looking around me, right now: work macbook, personal linux laptop, smartphone, steam deck. I suspect that the workflows that were "fine" in 1995 would really wear on me today. Especially the ones that involve migrating documents from place-to-place for collaboration while trying to maintain a canonical master copy somehow.

Today, because of de-facto reliance on the cloud, "setting up" a new machine - regardless of its OS - takes me about 20 minutes. If my laptop fell off of my bike, that would suck, but I wouldn't irretrievably lose important data.

There are downsides to the current cloud-first paradigm too, of course. But I don't think it's _all_ downside.


Yeah I never said it was "all" downside.

I never migrated the majority of what I do to "the cloud" and I have multiple devices, laptops etc. in my house. Setting up a new Linux install takes me about 20 minutes. Wouldn't know about Windows. Then again, I probably use way fewer "services" / "apps" than most people. It's funny, I've always been a very tech savvy computer nerd. I've developed software for a living for 25 years. But the older I get and the more the industry changes the less I find I use "modern tech" as a consumer.

I'm also not thinking back to 1995. This all started, in my memory, following the "mobile revolution" at the tail-end of the 00s. That's when more and more software that I use every day stopped selling perpetual licenses and started charging monthly subscriptions. Everything went "mobile first" and "cloud first" and it got more and more persistent as the 2010s went on.

On a positive note, there is some software that used to be inaccessible due to price, like Avid's Pro Tools, that I can now afford thanks to the switch in pricing models.

But even if it took me an entire weekend to set up a new device, I think that I would still prefer that over needing literally everything to have Internet access. It removes the control from me, the user, and places it in the hands of "the corporation." They can change the software without my consent. They can suffer outages (to be fair we can have local hardware failures too but it's under my control which makes a difference). I remember almost returning my PS4 when it required me to connect it to the Internet just to be able to use it on first boot.


> But the older I get and the more the industry changes the less I find I use "modern tech" as a consumer.

It may be a "get out of my lawn!!" reaction, but I find modern software distasteful.

I want to use software that enable me to invent and do nice things. Not software that locks me in a pre-designed process. Even if most of the time I don't go inventing, and if the pre-designed process is nice, that difference still sores me.


You aren't alone. Open ended systems are usually far more powerful and interesting than rigid ones. I need an extremely compelling reason to even consider picking up a new online-only/saas or similar tool.

Investing time and energy into a tool that can be ruined or lost at any point in the future, or might turn out to be too limited, is a huge risk. It doesn't take getting burned too many times to start getting a lot more wary.


All good points.

I suspect preferences will hinge on peoples' budgets for personal responsibility. As my non-digital responsibilities have increased, I've found it nice to be able to delegate to "the cloud" - even at the loss of independence & control.

If there were a personally-owned "cloud" setup, I would prefer that. A box that plugs into my fiber connection and provides the equivalents of the cloud services I use, with data stored locally and backed up automatically to a secure server. A man can dream.


Such a thing exists, but building and maintaining that come at a pretty high cost to your personal time. There’s very little that we do in the cloud that doesn’t have an on-prem (at home) equivalent. You could even rent servers at a CoLo or something and provide yourself regional resiliency, etc.


There's no reason why it should come at a pretty high cost to one's personal time, though. A plug-and-play box with a well-defined API for storage and sync is not an insurmountable engineering problem. The economics of it is why we don't have one, yet.


Because I wanted hardware that's already been tested end-to-end with not only linux in general, but the distro & version I'm using (Fedora 36).

Using the same hardware that Lenovo ships with linux out-of-the-box, as well as the same hardware that Red Hat employees use, is worth more to me than a couple of extra performance cores. CPUs have been "fast enough" for my use cases for years.


@nivertech I use the Samsung c34j74x:

https://displaysolutions.samsung.com/monitor/detail/1280/C34...

It's 3440x1440, and yes the Intel driver under Fedora drives it flicker-free at 100 Hz.


That sounds rough! I would probably look into getting a full replacement (possibly with a different model) from Lenovo, given such persistent "lemon" issues.


There are regular HN threads discussing good development machines, especially from people hoping to find an OSS alternative to MS, Google, & Apple walled gardens. The hardware & operating system used for building products is a discussion relevant to many of us here.


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

Search: