Matt Clough
banner
clough.cool
Matt Clough
@clough.cool
✌️🌌🌝😹🌿🏞️🍄🪢👨‍💻🔪🔥📜

Staff design engineer at GoFundMe
"Mock" has heavy testing associations, but it feels appropriate here too.
July 17, 2025 at 2:47 PM
It kind of just sounds like... workarounds? Presumably code does this because the proposed standards can't be used yet.
July 17, 2025 at 2:45 PM
It shows
July 10, 2025 at 6:18 PM
The proof is in the pudding
July 10, 2025 at 6:14 PM
Yeah, Cypress unfortunately
July 7, 2025 at 11:36 PM
I would hope the consumer would assume responsibility for failures if they change internals, but in the case that they just want to click a button in the shadow DOM, for example, in a browser test.
July 7, 2025 at 9:01 PM
Do you expose the elements via the component's API? Do you just tell them to drill into the shadow DOM?
July 7, 2025 at 8:36 PM
Woah cool
July 4, 2025 at 4:43 PM
it is how we are born
July 2, 2025 at 5:58 PM
being sticky and not knowing what day it is
July 2, 2025 at 5:55 PM
Ah, right. Yeah, I'd assume a single one would be better for performance, but a lot of what I'm finding seems to suggest that they're pretty performant and any performance hits would be negligible (especially compared to deprecated MutationEvents, which I'm just now learning about)
July 2, 2025 at 2:12 PM
In the first case, are you just observing the document? I think any observed element can be garbage collected once it's removed from the DOM. Answer aside, I'm curious what you're using the mutation observer for.
July 2, 2025 at 1:51 PM
Neither of those have ever been deal-breakers in my experience. At least in Baltimore.
July 1, 2025 at 7:47 PM
I’ve spent almost 3 days of my life on this lawn mower
July 1, 2025 at 12:28 AM
And jquery! And ES5!
June 28, 2025 at 1:03 AM