If you have index files in your app code that look like this, just delete them β
Import directly; avoid barrel files. They don't really make your codebase more organized, and have a bunch of downsides.
This is Uruguay:
- 0% tax on foreign income for 11 years
- Permanent residency in just 2 years
- Less corrupt than the US
It is the safest country in South America.
Here are 11 reasons why the βSwitzerland of South Americaβ is a hidden gem:
What kind of childhood makes a top scientist? Is it enough to have all the right traits (brilliance, grit, etc) or do you need the right family too?
And why should we care? A π§΅ on our paper on the Nobel Laureates.
A teaser: the income distribution of the laureates' fathers.1/N
Using AI to write production code is similar to outsourcing. You are no longer doing the fun stuff: designing and writing high quality code. Instead you: Review bad code N times to make it somewhat acceptable, panic fix bugs in production, maintain ever growing messy code base.
Cloudflare has officially joined OpenNext to help solve the nextjs vendor lock-in problem
they are now maintaining an official adapter that can deploy your nextjs app to cloudflare
we have a new discord, new github org, and we're adding support in sst soon
Another pattern we use a lot β instead of conditionally adding classes, conditionally set a data attribute and use the `data-*` variant to add styles.
Feels a bit more Tailwind-y and your class strings are a little less messy without the ternaries and stuff.
Dear managers: Raising productivity is not about monitoring people. It's about motivating them.
94 studies: Surveillance fails to improve performanceβand increases stress, distrust, and dissatisfaction.
Tracking people is not a substitute for respecting and valuing them.
I will die on the hill that RTO hurts families with young children the most β and mothers above all when mom is still the default caregiver.
Donβt make people choose between their kids and their careers.
Extremely strange TS behaviour someone just DM'd me.
Adding | [] to a generic type parameter seems to infer the type as a tuple, instead of an array!
Pretty weird, and quite useful to know about!
Announcing -
WebGPU Puzzles:
Learn GPU Programming in Your Browser
It's a web app that letβs you practice writing GPU compute kernels using WebGPU - runs 100% in the browser, locally on your GPU (even tiny integrated laptop GPUs).
To make your TypeScript server auto-restart for things like codegen'd files, add this to your .ππππππ/ππππππππ.ππππ and thank me later:
"ππ’ππππππππ.ππππππππ.π πππππΎππππππ": {
"π πππππ³ππππππππ’": "ππππ΅ππ΄πππππ",
"πππππππππΏππππππ": "ππ’ππππππΏπππππππ’πΏππππππ",
"π πππππ΅πππ": "ππππ΅ππ΄ππππππΎππΏππππππ³ππππππππ’",
"ππ’πππππππππππππππ³ππππππππ’": ππππ
},
TypeScript 5.6 brings a new VSCode option for disallowing auto imports via regex.
This is AWESOME for preventing importing from a package's barrel file, like lodash.
In the US, it'll cost you, say, $200,000/year to rent one biological programming core. Hetzner will rent you 1 AMD EPYC core for $55/year. You damn well better be optimizing for the maximum efficiency of the biological core over the silicon core.
π If you haven't already tried it: @googlechrome now has an embedded version of Gemini - and specialized guides for developers detailing how to use other local models within your browser.