In which I weigh in on Web Components, which seem like a nothingburger:

https://www.naildrivin5.com/blog/2023/11/17/what-is-lightdom-webcomponents-buying-us.html

What is WebComponents Buying Us?

What is WebComponents Buying Us?

Naildrivin' 5 - Website of David Bryant Copeland
@davetron5000 thank you for writing this down! I think the big benefit of using Web Components here are being able to use lifecycle hooks. You get the benefits once you start inserting/ajaxing in more of these elements later and they just upgrade themselves w/o manual work from you. Same for deregistering events upon removal (memory leaks).

@Schepp @davetron5000

💯 this 👆🏻

To me, custom elements just add a sprinkle of syntactic sugar around the lifecycle, but that sprinkle is immensely valuable.

Encapsulation within a class helps nudge developers toward cleaner code too. Yes, this absolutely can be achieved with vanilla code, but it takes more discipline.

Of course, things like the (recent) ability to participate in native forms for validation/serialisation are great enhancements but use-cases are rarer.

@ryantownsend @Schepp @davetron5000 I am starting to get more interested in WC. Good to read these takes