egoist.dev
buy me a coffee: github.com/sponsors/egoist
👤 Joined on 01 July 2023
Followers
Following
Total Posts
@fxcl.bsky.social@fxcl.bsky.social → @egoist.devPlayed around with MCP on the weekend! It’s 🔥
Show PostOne of my favourite UI patterns is using `backdrop-filter` to create a “frosted glass” effect. When I see this effect in the wild, though, it’s almost never as lush and realistic as it could be. There’s an important optimization that nobody makes. ✨ I share the secret sauce in my brand-new post:
Show Postoh wow you have a SaaS? Let me guess what your website says - "what used to take months and does it in minutes" - "scales effortlessly" - "lets you focus on business logic and leave the hard bits to us" - “unlocks the potential of your team” - “powerful yet easy to use” /1
Show Postone easy way to reduce component initialization cost is to move the logic out of the component and into lazily-computed state. In your linked example, you have multiple O(n^2) lookups happening on first render, and much of that computation could be precomputed+reused if hoisted.
Show Post