Jacob Paris
I have a small collection of framework templates here You can filter, search, or add new ones to the list Or add the MCP server and cursor/claude can use this when spinning up new projects www.pkgless.com/templates
Jacob Paris reposted
Jacob Paris reposted
Rolldown's wasm build just got significantly faster in browsers thanks to @broooooklyn.bsky.social! One challenge of native bundlers is that they have to ship and run as wasm in browser environments. Some bundlers like rspack doesn't even support this due to the complexity it involves.
once my team spent a while debugging some data mismatch and eventually found somewhere I had hardcoded a value (that's correct 90% of the time) right below a comment saying // TODO: choose more intelligently
Search your code for any occurrences of "TODO: this query is fast for now, probably want to improve locking around this when it gets big" and fix them. This PSA brought to you by Discover being slow today.
Jacob Paris reposted
if you want to hear @threepointone.bsky.social talk about what he means by leverage, watch this:
I had a whole post how tech is leverage and enabled me (and millions) to achieve social mobility, all while I was scolded by luminaries in the ecosystem for years about doing it wrong and not caring about poor people; that radicalised me to never let others influence my opinion about emerging tech
Jacob Paris reposted
You only need a little bit of TypeScript knowledge to be dangerous with React - Type your inputs, infer your outputs - Use React.ComponentProps everywhere - Use Omit<> when overriding props - Don't pass types from the DB into your components www.jacobparis.com/content/reac...
Jacob Paris reposted
This was a really good post! www.jacobparis.com/content/reac... Shoutout to @jacobparis.com Definitely something I'd have every new React developer read if they were to join my team!
Jacob Paris reposted
Huge win from @franzanth.bsky.social creating a Content Scraper Blocklist: bsky.app/profile/cont... It's a blocklist for the kinds of engagement bait accounts that repost stolen content, often with misleading captions.
Unpopular opinion: they're all just "tests" and they all do the same thing. No one agrees on the difference between unit or integration or e2e or contract or smoke or acceptance or functional or ui or component or regression or sanity or beta or white-box or black-box or explor
Settle an argument: what is an integration test, and is that the same as an end-to-end test? Secondly, is testing a React component a "unit test"?
Jacob Paris reposted
Jacob Paris reposted
This is my currency component <Currency cents={100} … // $1.00 … from="EUR" // 1.00€ … from="USD" to="EUR" // 1.23€ /> - uses context to get currency info from DB - shares a formatter with inputs - also includes a @v0.dev sandbox at the bottom www.jacobparis.com/content/curr...
This is my currency component <Currency cents={100} … // $1.00 … from="EUR" // 1.00€ … from="USD" to="EUR" // 1.23€ /> - uses context to get currency info from DB - shares a formatter with inputs - also includes a @v0.dev sandbox at the bottom www.jacobparis.com/content/curr...
You only need a little bit of TypeScript knowledge to be dangerous with React - Type your inputs, infer your outputs - Use React.ComponentProps everywhere - Use Omit<> when overriding props - Don't pass types from the DB into your components www.jacobparis.com/content/reac...
Jacob Paris reposted
If you use VS Code, my Abracadabra extension automates that move for you (along many other shenanigans to re-arrange and clean conditional logic) marketplace.visualstudio.com/items?itemNa...
New refactoring move: 🏗️ Lift If Statement Suuuper handy when you see a nested condition that would be a good candidate to switch over at the top-level It turns out there is a safe way to pull it up—great editors automate this recipe for you 😉 If yours don't, here's the step-by-step guide:
Jacob Paris reposted
React PDF is my favourite way to create documents - use regular react components - works with context providers so no prop drilling - easy to add custom Google Fonts www.jacobparis.com/content/reac...