TLDR Web Dev

TLDR WEB DEV 2024-10-07

5 sections16 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01ARTICLES & TUTORIALS

YES, YOU SHOULD USE SQLITE: NOTION'S CREATIVE SQLITE USAGE FOR 20% FASTER LOADS

Notion implemented WebAssembly (WASM) SQLite in its web app. This resulted in a 20% reduction in page navigation latency. To achieve this, its team used Web Workers to offload database operations to background threads and a SharedWorker with the Web Locks API to fix data integrity issues. They also addressed issues of slow disk reads by implementing a "race" between disk cache and network requests.

stacksweep.substack.com6 min read

UNLEASH JAVASCRIPT'S POTENTIAL WITH FUNCTIONAL PROGRAMMING

Functional programming (FP) is the process of composing functions to create software rather than just executing statements. This article goes through JavaScript's data types, functions, and methods and introduces FP techniques, including closures, higher-order functions (map, filter, and reduce), and function composition.

janhesters.com37 min read

02OPINIONS & ADVICE

RUST NEEDS AN EXTENDED STANDARD LIBRARY

Rust's ecosystem is plagued by fragmentation, with a constant influx of new libraries and frameworks. This fragmentation has led to security concerns as developers are forced to rely on numerous third-party libraries. The proposed solution is an extended standard library, "stdx," providing core functionalities like cryptography, networking, and data handling.

links.tldrnewsletter.com7 min read

WE DON'T TEST (REDDIT THREAD)

A Reddit user's company's development process involves developers writing and manually testing code because developers are pressured to move on to new tasks constantly. This results in frequent bugs being found in production, leading to blame placed on developers for not testing enough. Advice is given by other Reddit users on how to emphasize testing more, such as making a business case for proper testing to management.

links.tldrnewsletter.com

THE CASE AGAINST DOCUMENTING CODE

Excessive code documentation can be inefficient, as it requires time and effort to create and maintain, often leading to outdated and irrelevant information. Instead, in-line documentation within code itself should be preferred, and it's possible that LLMs could make documentation much easier to maintain in the future.

developing.dev3 min read

03LAUNCHES & TOOLS

ONE

One is a new React framework designed to simplify web and native app development, built on Vite and offering universal, typed routing. It works with Zero, a client-side database solution. Zero provides data storage and syncing, allowing for small bundle sizes and offline-first capabilities.

onestack.devTool

LIVEKIT AGENTS

The LiveKit Agents framework is a Python library that allows developers to build real-time AI-driven server programs that can interact with users through text, audio, images, and video. This is the package that OpenAI uses to power its Advanced Voice feature. A JavaScript version of the library is also available.

github.comGitHub repository

04MISCELLANEOUS

PATENT TROLL SABLE PAYS UP, DEDICATES ALL ITS PATENTS TO THE PUBLIC!

Cloudflare won a patent infringement lawsuit against Sable, a patent troll who asserted patents relating to old hardware-based router technologies against Cloudflare's modern software-defined services. A jury found that Cloudflare did not infringe Sable's patent and that the asserted patent claim is invalid. Sable agreed to pay Cloudflare $225,000, grant Cloudflare a royalty-free license to its entire patent portfolio, and dedicate its patents to the public.

blog.cloudflare.com9 min read

PLAYING WITH BOLT AND POSTGRES

BOLT is a binary optimization tool from LLVM that improves PostgreSQL performance. It can significantly increase performance, sometimes by 30-40%, but the effectiveness depends greatly on the profile used to guide the optimization. While BOLT itself may not be directly implemented in PostgreSQL, the learnings from the experiment could help future code and build adjustments generate more efficient executables.

vondra.me15 min read