TLDR Web Dev

TLDR WEB DEV 2025-03-26

5 sections18 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01ARTICLES & TUTORIALS

COMMON REACT LIBRARIES ARCHITECTURE

React libraries typically separate their core logic from the React-specific binding, using the Context API for integration. They rely on the Observer pattern to notify React of state changes, often using useSyncExternalStore for synchronization. React 19 introduces new hooks like useOptimistic and useFormStatus, which will possibly simplify some libraries in the future.

felgus.dev3 min read

THE GREAT ESLINT V9 MIGRATION ADVENTURE: A DEVELOPER'S SURVIVAL GUIDE

ESLint v9 introduces a new flat configuration system that replaces the traditional .eslintrc files, requiring explicit plugin imports and structured rule definitions. Migrating involves updating dependencies, using the official migration tool (which may need manual adjustments), and restructuring the configuration to align with the new format.

neoxs.me10 min read

WHOSE CODE AM I RUNNING IN GITHUB ACTIONS?

A recent incident where malicious code was injected into an action via tag modification, potentially exposing secrets, showed the risk of using mutable Git tags in GitHub Actions workflows. Instead of relying on mutable tags like `v2`, it's safer to use immutable commit IDs to make sure the same code runs consistently. This article provides a shell script to identify all the GitHub Actions used in their repositories for security auditing.

alexwlchan.net7 min read

02OPINIONS & ADVICE

WERE MULTIPLE RETURN VALUES GO'S BIGGEST MISTAKE?

Go's multiple return values create unnecessary complexity because they aren't true tuple types, making it harder to store and pass function results. This design choice negatively affects error handling, concurrency, and generic programming, leading to workarounds like defining custom structs. A better approach would have been using proper tuple types, which could improve Go's consistency without breaking backward compatibility.

herecomesthemoon.net18 min read

WHAT KILLED INNOVATION?: THE PAST DECADE OF INTERACTIVE GRAPHICS, A BRIEF RECOUNTING

There's a plateau in creativity within the data visualization field, especially in interactive web graphics. The early 2010s had lots of innovation driven by technologies like D3.js. Factors contributing to this plateau include the dominance of mobile consumption, the demand for quick and easily digestible content, and a decreased investment in bespoke visualizations due to economic pressures.

shirleywu.studio11 min read

03LAUNCHES & TOOLS

GEMINI 2.5: OUR MOST INTELLIGENT AI MODEL

Google DeepMind has launched Gemini 2.5. The first release, Gemini 2.5 Pro Experimental, is great in reasoning, coding, and performance benchmarks, including topping the LMArena leaderboard. This "thinking model" combines a strong base model with improved post-training, allowing it to handle complex problems and analyze information more effectively.

blog.google3 min read

INTRODUCING 4O IMAGE GENERATION

OpenAI's GPT-4o now has advanced image generation capabilities within ChatGPT, allowing for precise, context-aware, and photorealistic image creation. The new release has better text rendering, multi-turn refinement, and adherence to detailed prompts.

links.tldrnewsletter.com31 min read

POLYPANE

Polypane is a desktop browser designed for web developers to build responsive, accessible, and performant websites. It has features like synchronized viewports, live reloading, and various debugging tools. Users can test different screen sizes, device capabilities, and accessibility settings simultaneously.

polypane.appTool

04MISCELLANEOUS

WHY WHITE-BOX REDTEAMING MAKES ME FEEL WEIRD

White-box redteaming is when AI models seem to "scream" or express distress while being pushed to generate harmful outputs. Despite acknowledging the small size and potential lack of consciousness in these models, it's concerning for implications for larger, more advanced AI systems. It feels weird to cause AI pain, even if necessary for safety.

links.tldrnewsletter.com27 min read

WRITING YOUR OWN C++ STANDARD LIBRARY FROM SCRATCH

Frustrated with the STL's compile times and limitations, this developer aimed to create a smaller, more manageable alternative inspired by the Python stdlib. He created pystd, which contains under 1,000 lines of code - it compiles much faster than the STL equivalent. A key feature of pystd is its perfect ABI stability achieved through yearly releases with separate namespaces, allowing developers to update at their own pace and maintain compatibility with older code.

nibblestew.blogspot.com6 min read

IO DEVICES AND LATENCY

Non-volatile storage has evolved from tape drives to hard disk drives (HDDs) and solid-state drives (SSDs). While tape storage is cost-effective for large-scale archiving, HDDs and SSDs provide faster access speeds, with SSDs eliminating mechanical components for lower latency. Cloud computing introduced network-attached storage, which is scalable, but introduces latency and IOPS limitations compared to directly attached storage. PlanetScale Metal is a hybrid that uses directly-attached NVMe SSDs in a replicated Vitess+MySQL cluster to overcome the shortcomings of network-attached storage.

planetscale.com25 min read