Daily Edition · Page 4

THE DAILY INDEX

Technology, AI, software, security, crypto and business

ARTICLES & TUTORIALS

TLDR Dev

ABSOLUTELY EVERYTHING YOU NEED TO KNOW ABOUT ACT() IN REACT TESTS

The `act()` function in React tests makes sure that all state changes and side effects are fully processed before assertions run, preventing tests from checking against outdated state values. While React Testing Library functions like `userEvent` and `findBy...` automatically wrap their operations in `act()`, you'll need to manually use it when testing hooks with state changes, directly calling DOM methods like `button.click()`, or manually dispatching events.

WHEN EVERYONE'S A DEVELOPER, HOW DO WE PROMOTE THE WEB PLATFORM OVER REACT?

AI code generation tools are undermining web platform adoption by defaulting to React/Next.js solutions, especially as "vibe coders" (non-programmers using AI to create apps) increasingly rely on these tools without understanding native web capabilities. This trend is creating worse web experiences, and some solutions include teaching people to prompt for vanilla web solutions, creating open datasets of framework-free code, and spotlighting projects that use modern web features without heavy frameworks.

HOW WE PREPARE SHOPIFY FOR BFCM (2025)

Shopify prepared for Black Friday Cyber Monday (BFCM) from March to October by running bimonthly "fire drills" that simulated 150% of the previous year's peak traffic, conducting chaos engineering exercises called "Game Days," and systematically identifying and fixing infrastructure bottlenecks. Its preparation included capacity planning across multiple cloud regions, load testing with its tool, "Genghis," and creating a "Resiliency Matrix" to document vulnerabilities and response procedures.

TLDR IndexPage 4