Newslurp

<< Stories

Choose simple over complex 🎁, Anthropic system prompts πŸ“œ, 5000x faster CRDTs ⚑️

TLDR Web Dev <dan@tldrnewsletter.com>

August 28, 11:09 am

TLDR WebDev
People often prefer complex solutions, even though they claim to want simplicity. This is because complex solutions make people feel special 

TLDR

 TLDR Web Dev 2024-08-28

πŸ§‘β€πŸ’»

Articles & Tutorials

Common Causes of Memory Leaks in JavaScript (18 minute read)

Memory usage is tracked in Node.js (V8) with metrics like RSS, Heap Total, Heap Used, External, and Array Buffers. There are various causes of memory leaks, such as improperly managed variables, persistent global objects, unremoved event listeners, closures capturing variables, and circular references. Developers can profile memory usage by using the `--prof` flag and analyzing the resulting profile file to identify areas of potential memory leak.
How we run migrations across 2,800 microservices (11 minute read)

Monzo manages library migrations across its 2,800 microservices by having a dedicated team handle migrations, avoiding coordination overhead. Its team has automated mass deployment tooling and automated rollback checks, along with a monorepo structure to streamline the process. This strategy, combined with a gradual roll-out approach and the use of configuration systems for quick rollbacks, makes sure downtime and headaches are minimized.
How Meta enforces purpose limitation via Privacy Aware Infrastructure at scale (18 minute read)

Meta's Privacy Aware Infrastructure (PAI) is a large-scale initiative designed to enforce purpose limitation. PAI's key component, Policy Zones, provides a comprehensive mechanism for encapsulating, evaluating, and propagating privacy constraints for data in transit and at rest. Its integration across various Meta systems, including function-based and batch-processing systems, makes sure that data is only used for its intended purpose.
🧠

Opinions & Advice

Anyone else find Tailwind CSS a bit too redundant? (Reddit Thread)

Reddit users debate whether Tailwind is too redundant or not. Some people find the class names to be repetitive and difficult to maintain. Others find Tailwind CSS to be helpful and time-saving.
Merchants of complexity (2 minute read)

People often prefer complex solutions over simple ones, even though they claim to want simplicity. This is because complex solutions make people feel special and superior. Basic problems are often turned into insurmountable challenges during development, requiring expensive subscriptions for "sophisticated" solutions.
πŸš€

Launches & Tools

[FusionAuth blog] Don't trust an auth vendor without seeing it run in your application (Sponsor)

Authentication is one of the main building blocks of any software product, and you want to be really sure you're making the right choice. The only reliable way to do that is to run it in your actual code, in your actual application logic. If there's no free trial, walk away. Read the blog
Simulacrum (GitHub Repo)

Simulacrum allows you to write code to build interactive diagrams for complex software flows. It's a React component with an IDE, a compiler, and a runtime all working together. The compiler converts your code into something that can emit the program's custom instructions.
Free Public APIs (Website)

A collection of 224 free public APIs for developers that have been verified and tested.
Background Remover (Website)

This is a free background remover that uses WebGPU to remove backgrounds locally in-browser.
🎁

Miscellaneous

5,000x faster CRDTs: An Adventure in Optimization (45 minute read)

This developer was able to optimize CRDTs (Conflict-Free Replicated Data types) for collaborative editing by 5,000x. They started with a simple data structure change using a flat list instead of a tree. Then they adopted a bidirectional linked list and run-length encoding, leading to a 30x speedup compared to the original Automerge implementation. Finally, by using Rust's memory control capabilities and a range tree data structure, the developer achieved a 5,000x speedup, demonstrating that CRDTs can achieve performance comparable to native strings.
Looming Liability Machines (LLMs) (7 minute read)

Using LLMs for root cause analysis (RCA) for cloud incidents is probably not a great idea. LLMs, while capable of automating some aspects of RCA, lack the depth and nuance of human experts. Furthermore, there's the "automation surprise" problem, where unexpected LLM behavior could lead to dangerous situations due to user misunderstanding.
Accurate Proxy Metric Evaluation (5 minute read)

Netflix researchers developed methods to analyze historical A/B test data to understand the relationship between proxy metrics and long-term business outcomes. They propose three estimators that offer more robust solutions for understanding the true relationship between proxy metrics and north star metrics: Total Covariance (TC), Jackknife Instrumental Variables Estimation (JIVE), and Limited Information Maximum Likelihood (LIML).
⚑

Quick Links

TaskWarrior (Website)

TaskWarrior is free, open-source software that helps you manage your TODOs from the command-line.
The Monospace Web (4 minute read)

Monospace fonts and grid systems can be used to create readable, consistent, and visually appealing web pages.
Anthropic publishes the β€˜system prompts' that make Claude tick (3 minute read)

Anthropic has published the system prompts used to guide its Claude AI models and plans to continue being transparent moving forward.
Docker app hosting (6 minute read)

This article describes how to use Docker to host applications on a VPS, which is cheaper and often easier to maintain than using traditional cloud providers.

Love TLDR? Tell your friends and get rewards!

Share your referral link below with friends to get free TLDR swag!
Track your referrals here.

Want to advertise in TLDR? πŸ“°

If your company is interested in reaching an audience of web developers and engineering decision makers, you may want to advertise with us.

If you have any comments or feedback, just respond to this email!

Thanks for reading,
Priyam Mohanty, Jenny Xu & Ceora Ford


If you don't want to receive future editions of TLDR Web Dev, please unsubscribe from TLDR Web Dev or manage all of your TLDR newsletter subscriptions.