TLDR Web Dev

TLDR WEB DEV 2024-10-08

6 sections20 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01GENERAL

Sponsored

It's important to ensure that the code generated by LLMs goes through proper quality checks before going into production. Sonar's code assurance workflow [4] ensures that AI-generated code meets the highest standards to produce software that is secure, reliable, maintainable, and of unparalleled quality. Using Sonar, development teams can:

sonarsource.comSponsor

02ARTICLES & TUTORIALS

GOOD RETRY, BAD RETRY: AN INCIDENT STORY

This article explores various techniques for managing retries, including retry budgets and circuit breakers, and analyzes their effectiveness through simulations. A developer learned about the pitfalls of implementing retries in a microservice architecture. He started by adding retries to solve a transient error issue but discovered the potential for retry storms and client synchronization problems. After implementing exponential backoff and jitter, he faced a new challenge when the system experienced an hour-long outage caused by a bug in a new feature.

links.tldrnewsletter.com21 min read

HOW DO HTTP SERVERS FIGURE OUT CONTENT-LENGTH?

HTTP servers determine the "Content-Length" header, which indicates the size of the response body in two ways. When the response is small enough to fit in a server buffer, the length is calculated and sent directly. For larger responses, HTTP employs "chunked transfer encoding", dividing the data into chunks with their respective lengths.

links.tldrnewsletter.com5 min read

RUNNING CLANG IN THE BROWSER USING WEBASSEMBLY

Clang, a compiler front end for C/C++, can now be run directly within a web browser. This is done using the Wasmer JS SDK, which allows compiling C code to WebAssembly. This development opens up possibilities for online IDEs to adopt the SDK and enable users to compile and run C programs within their browsers.

wasmer.io5 min read

03OPINIONS & ADVICE

THE FRONTEND TREADMILL

Frontend teams are wasting time and resources by constantly chasing the latest frameworks, which are usually destined to become obsolete. Instead, they should focus on mastering core web technologies and building deep expertise in their current frameworks. This approach offers greater career longevity and allows teams to hire skilled engineers who are adaptable to changing technologies.

polotek.net5 min read

WEB COMPONENTS ARE NOT FRAMEWORK COMPONENTS — AND THAT'S OKAY

Web Components are not meant to replace frameworks but rather to complement them. There are two ways to think about components: generalizable elements that extend HTML (where Web Components excel) and project-specific reactive templating components (where frameworks still hold an advantage). The Web Components community should focus on making them more ergonomic for authors, which would make them more viable as a compile target for frameworks.

lea.verou.me10 min read

REACT ON THE SERVER IS NOT PHP

Server-side JavaScript, specifically using React on the server, is not a return to PHP. While the concept of server-side rendering may seem similar to the old PHP approach, the underlying principles and tools have evolved drastically to offer unified stacks rather than having separate stacks for frontend and backend.

artmann.co8 min read

04LAUNCHES & TOOLS

PYTHON 3.13

Python 3.13 has been released. It includes a new interactive interpreter, experimental support for free-threaded execution, and a Just-In-Time compiler. The release also features enhanced error messages with color highlighting, improved locals() semantics, and default values for type parameters.

docs.python.orgTool

SQ

sq is an open-source data wrangling tool that allows users to inspect, query, join, import, and export data. It supports a wide range of data sources including common SQL databases, Excel XLSX files, CSV, TSV, JSON, JSONA, and JSONL formats. It also provides various output formats like INSERT to SQL databases, CSV, Markdown, and more.

sq.ioTool

JAZZ

Jazz is an open-source toolkit that makes building real-time, collaborative applications easier by providing a single abstraction for distributed state, replacing the need for traditional APIs, databases, and message queues. It uses CRDTs and public-key cryptography to enable real-time, cross-device synchronization with secure permissions, built-in conflict resolution, and seamless integration with various environments, including React, React Native, and NodeJS.

jazz.tools4 min read

05MISCELLANEOUS

VIRTUALIZING IOS ON APPLE SILICON

A developer successfully virtualized iOS on Apple Silicon Macs through a combination of kernel patches and system modifications. The challenges encountered during the process included signature verification and binary incompatibilities between iOS and macOS. The developer used undocumented features of Apple's Virtualization framework and found hints of potential future developments like touch functionality.

nickb.website16 min read

OPTIMIZING POSTGRES TABLE LAYOUT FOR MAXIMUM EFFICIENCY

Postgres adds padding to data for efficient disk access through a process called “data alignment.” Misaligned columns can increase the size of tables and indexes, leading to wasted disk space and slower performance. This article provides practical examples and code snippets showing how to optimize table and index layout for better alignment.

r.ena.to15 min read