
Summary
Tony Hoare's invention of null references is highlighted as a significant programming misstep, referred to by Hoare himself as a "billion-dollar mistake." This decision, made for its simplicity, has led to substantial costs in errors and debugging challenges across various programming languages. The discussion draws parallels to advice from Ryan Dahl, creator of Node and Deno, emphasizing the pitfalls of adding seemingly cute features to programming languages that can lead to regret later.
The conversation shifts to React, specifically focusing on the useEffect hook, which is described as a potential source of costly errors. An example illustrates how neglecting to include a dependency array can cause functions to run unexpectedly, leading to performance issues and infinite loops. The speaker shares personal experiences with debugging such problems, particularly in a small web app company, and reflects on the broader implications for developers working with React. Despite the challenges associated with useEffect, the speaker maintains a positive view of its overall utility, urging developers to approach its use with caution to avoid costly mistakes.
Show Notes
React's Billion Dollar Problem Theo is a software dev nerd mostly known for full stack TypeScript stuff. Check out Theo and his stack at t3.gg ---------------------------
-------- Keywords: browser wars, tailwind, coding models, software engineering, coding, web development, programming Learn more about your ad choices. Visit megaphone.fm/adchoices
More from Theo - t3․gg
I'm burnt out. Theo is a software dev nerd mostly known for full stack TypeScript stuff. Check out Theo and his stack at t3.gg ----------------
The Dangers Of Promise.all() Theo is a software dev nerd mostly known for full stack TypeScript stuff. Check out Theo and his stack at t3.gg ------------------------------
The Dangers Of Promise.all() Theo is a software dev nerd mostly known for full stack TypeScript stuff. Check out Theo and his stack at t3.gg -------------------------
Javascript in the future? Theo is a software dev nerd mostly known for full stack TypeScript stuff. Check out Theo and his stack at t3.gg ------------------------------
Bleeding Edge* Theo is a software dev nerd mostly known for full stack TypeScript stuff. Check out Theo and his stack at t3.gg -----------