Nick

@nicklucas.dev

London based 👨🏼‍💻 building tools for humans ✨ tRPC Core ⚡ team @framer.com 🧩 (opinions my own)

I’m beginning to think that everyone who posted 🦋 on X/twitter and wasn’t a HUGE account got deranked the same way that @danabra.mov did (twice I think?) Even paying them money I’m lucky if my posts get 50 views even with promoting the post privately to friends for likes and stuff.

back in my day vibe coding was just asking your smart friends what to do and acting dumb when they try to explain never seen someone take over my keyboard and type so fast

I really installed this with an open mind, but colour on buttons is important and there is no way glass controls should be inheriting the colour from behind. It’s a gorgeous control, but colour is not up for grabs for arbitrary use if you like UX

Bild

useEffect is the root of all evil and should be avoided react or dev tools should provide a mode to log all the effects which fire named by component/hook, it would massively shorten debugging journeys

Agents are too powerful for coding. They’re not great at everything, but for very specific or repetitive tasks they’re king. I just added a WAF to cloudfront in minutes to restrict IP ranges, that sort of terraforming task used to be a full afternoon of research and fiddling

I really don’t think copilot is coming for our jobs any time soon. It can’t even translate min(0) correctly from Zod to ArkType

Bild

11.0.0-rc.814 of @trpc.io is out now, fixing a great many reported issues in the new @trpc/tanstack-react-query package! Keep the feedback coming, we also have a number of further codemod improvements in the works

Bild

Today I was automating some documentation generation into Confluence, and realised it just works off HTML under the hood with some custom elements for widgets. React's `renderToString` method plus custom elements type declarations and you have a familiar templating engine in 10 minutes 😙🤌

Fed up of the git checkout & pull dance, especially when you have repos that don't agree on master/main/next as your default? Here's an alias: ``` git config --global alias.sm '!f() { git switch $(git remote show $(git remote | head -n 1) | sed -n "/HEAD branch/s/.*: //p") && git pull; }; f' ```

Looks like some small oversights in the new TanStack client for tRPC. Nothing serious but a few small breaking changes may be needed before it’s fully stable Keep the feedback coming!

Is it really the case that JavaScript generators don’t have a primitive in either the language or node.js to merge multiple generators/iterators into 1? I ended up using an EventEmitter, event callbacks, and node’s on() method to merge multiple websocket feeds, but it is grim