| Random Link ¯\_(ツ)_/¯ | ||
| Jun 22, 2024 | » | Testing in a Monorepo
7 min; updated Jun 22, 2024
Testing Web ComponentsWhile any test framework can work, it’s better to test web components in a browser environment because that’s where they’ll be used. Node-based frameworks would require too much shimming of DOM calls that’d make the tests unrepresentative. and are good options for browser-based testing. is powered by ES-build, and so is the client-side of the app; let’s go down this path and see where it leads. CommonJS modules don’t work in the browser . Earlier on , using ESM on the server turned out difficult. Hopefully, that doesn’t me bite back now. ... |
| May 28, 2024 | » | Of Stale UI and Re-renders
3 min; updated May 28, 2024
More than once, I’ve been surprised by a web component either showing data that should no longer be there, or not showing data that should be there. This page aims to reason through such cases for a better mental model of web components. Rendering ListsBoth When performing updates, |
| May 5, 2024 | » | Inheritance
2 min; updated May 5, 2024
MixinsA mix-in is an abstract subclass. This technique is especially useful in languages where a class can only have a single superclass. |
| May 5, 2024 | » | Home Page
2 min; updated May 5, 2024
![]() When a user lands at /home, this UI is shown. A couple of components are shareable from /browse, e.g., search-bar, search-results. Sharing Code with |
| May 3, 2024 | » | Reusable Cards
4 min; updated May 3, 2024
ContextHow can I reuse code in these user experiences? ![]() Current card templates. TL: editable card owned by the user. TR: the overall modal experience. BL: a publicly viewable card. BR: a card owned by the user but is in the trash. ... |
| Apr 20, 2024 | » | Browse Page
3 min; updated Apr 20, 2024
![]() When a user lands at /browse, this UI is shown. A couple of components seem to emerge: search-bar, tags-list, card-results, and mini-card.
|



Introduced to mixins by . Didn’t know that there are passionate advocates for this, e.g., ’s “You can even look at normal subclass inheritance as a degenerate form of mixin inheritance where the superclass is known at class definition time, and there’s only one application of it.”