DHDan Holloraningrimicorn.hashnode.dev·1d ago · 5 min readSvelte Error Boundaries: Contain the Crash Instead of Losing the PageEvery app has that one component. The chart that chokes on a null in the data, the third-party embed that throws when its script loads late, the dashboard card that assumes an API field will always ex00
DHDan Holloraningrimicorn.hashnode.dev·4d ago · 5 min readDependency Cooldowns: Make Your Package Manager Wait Before It Trusts New CodeMost npm supply-chain attacks follow the same script. Someone phishes a maintainer or steals a publish token, pushes a poisoned patch release, and then waits for every ^1.2.3 range on the planet to pi00
DHDan Holloraningrimicorn.hashnode.dev·5d ago · 5 min readCSS Container Style Queries: Let the Parent Set the ThemeEvery design system eventually grows a modifier class problem. The card needs a dark version for the footer, a compact version for the sidebar, and a "highlighted" version for the pricing page. So you00
DHDan Holloraningrimicorn.hashnode.dev·Oct 9 · 5 min readMap.getOrInsert: Stop Writing the has/get/set DanceEvery JavaScript codebase has this pattern somewhere. Usually in a dozen places. You want to group things by a key, so you reach for a Map, and then you write the same three lines you always write: ch00
DHDan Holloraningrimicorn.hashnode.dev·Oct 6 · 5 min readAstro Live Content Collections: Fresh CMS Data Without a RebuildEvery Jamstack site eventually hits the same wall. The marketing team fixes a typo in the CMS, hits publish, and then asks why the site still shows the old copy. The honest answer is "because the site00