Hacker News new | ask | show | jobs
by bobby_table 775 days ago
Having worked with both internal company web components and internal company jquery-based components, I vastly prefer the former.

Yes, ad-hoc fixing styles and behavior from the outside is nice. But when every internal style/class/element is technically part of the API surface, you quickly end up with extremely brittle code.

Suddenly every tiny change (bug fixes, refactors, new feature) in the component library has the potential to break the app in unexpected ways, and the result is an inability to upgrade. Happens all the time.

With shadow DOM, this problem basically go away (depending on how it’s implemented)