TLDR Web Dev

TLDR WEB DEV 2024-08-08

5 sections15 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01ARTICLES & TUTORIALS

CRINGEY, BUT TRUE: HOW UBER TESTS PAYMENTS IN PRODUCTION

Uber tests payment systems in production, since traditional staging environments aren't enough for catching real-world bugs. It treats deployments as experiments, carefully selecting a region for initial rollout and continuously monitoring business metrics. This allows it to identify and resolve issues early on with real-world data while reducing the impact on users.

news.alvaroduran.com11 min read

REACT COMPILER, HOW DOES IT WORK?

This article explains how React compiler works, specifically how it applies memoization techniques for efficiency on functions and hooks. The compilation involves traversing nodes, compiling functions, and replacing original functions with optimized versions. If memoization is applied, the compiler adds an import for `useMemoCache`. The article details the compiler's operation from entry through Babel to function transformation.

yongseok.me14 min read

TONY HAWK'S PRO STRCPY

A buffer overflow vulnerability was found in the "Create-A-Park" feature of various Tony Hawk's Pro Skater games. The vulnerability, dubbed "Tony Hawk's Pro Strcpy", allows attackers to gain code execution on multiple gaming consoles, including the original Xbox, PlayStation 2, GameCube, and even the Xbox 360 (on a specific older kernel version). This article explores the various methods used to exploit the bug, ranging from simple save game hacks to intricate ROP chains and network-based attacks.

icode4.coffee49 min read

02OPINIONS & ADVICE

I MADE A HUGE MISTAKE IN BECOMING AN ENGINEERING MANAGER (REDDIT THREAD)

This Redditor regrets becoming an Engineering Manager, finding the role soul-sucking, boring, and tedious. They miss the hands-on coding work they used to do and feel the management role is significantly different and more complex than being a lead. Commenters note that management is not a progression from engineering but rather a different job entirely.

links.tldrnewsletter.com

THE SENIOR ENGINEER ILLUSION: WHAT I THOUGHT VS. WHAT I LEARNED

This post debunks common misconceptions about senior engineers, revealing that they are not coding superheroes but rather seasoned professionals with experience dealing with complexity. Seniority involves handling legacy systems, managing stakeholder expectations, and orchestrating teams, not just writing code. True seniority comes with continuous learning and adaptability.

mensurdurakovic.com8 min read

PYTHON EXTENSIONS SHOULD BE LAZY

Python's "everything is an object" philosophy slows down the parsing of large codebases with the ast module due to the overhead of converting C structs to Python objects. This conversion results in excessive memory allocations and garbage collection. To address the issue, this developer implemented a Rust extension that processed the ASTs in Rust, only returning the final results to Python, resulting in a 16x speedup and significantly reduced memory pressure. They argue that Python extensions should be designed to be lazy, meaning that they should only create Python objects when explicitly required, and instead keep data in a compact, optimized format within their own language.

gauge.sh4 min read

03LAUNCHES & TOOLS

ANNOUNCING OFFICIAL PUPPETEER SUPPORT FOR FIREFOX

Puppeteer, a browser automation library, now officially supports Firefox. Users can now write automation and perform end-to-end testing using Puppeteer across both Chrome and Firefox. This support is built on WebDriver BiDi, a cross-browser protocol currently undergoing standardization.

hacks.mozilla.org10 min read

VERCEL AI SDK 3.3

Vercel AI SDK 3.3 introduces several new features for building AI applications with JavaScript and TypeScript, including tracing with OpenTelemetry for observability, multi-modal file attachments for chat applications, a `useObject` hook for streaming structured object generation to clients, and additional LLM settings like JSON schema support, stop sequences, and custom headers.

vercel.com8 min read

04MISCELLANEOUS

BENCHMARKING AWS LAMBDA COLD STARTS ACROSS JAVASCRIPT RUNTIMES

This article benchmarks the cold start performance of AWS Lambda functions using Deno, Node.js, and Python runtimes. Deno shows significantly better performance with faster startup times, especially in smaller function configurations. This is likely due to Deno's various runtime caches. You can make your Deno app start time even faster by populating these caches ahead of time during the Docker image creation so that they're immediately available when your application executes in AWS Lambda.

deno.com10 min read

FIRST IMPRESSIONS OF GLEAM: LOTS OF JOYS AND SOME ROUGH EDGES

Gleam is a functional programming language targeting both the BEAM and JavaScript. Its strengths lie in its excellent documentation, welcoming community, and powerful features like pattern matching and shadowing. However, the lack of loops, confusing type aliases, and idiosyncratic grouping mechanisms may pose challenges for developers accustomed to more traditional syntax.

ntietz.com15 min read