TLDR Web Dev

TLDR WEB DEV 2023-12-18

5 sections12 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01ARTICLES & TUTORIALS

DATABASE FUNDAMENTALS

This article teaches database fundamentals by guiding the reader in building a simple database. It starts with the ACID properties (Atomicity, Consistency, Isolation, and Durability) that most databases aim to guarantee and discusses the challenges in achieving these properties. It then delves into the concept of storage engines in databases, comparing mutable B-Trees and immutable Log Structured Merge (LSM) Trees. It explains how LSM Trees are designed to minimize disk I/O and seeks, making them suitable for write-heavy workloads. The article touches on topics like bloom filters and Write-Ahead Logs (WALs) as part of database design to achieve ACID properties and isolation.

tontinton.com27 min read

THE AWAIT EVENT HORIZON IN JAVASCRIPT

An async function, upon awaiting a Promise, cannot proceed until that Promise resolves, which could potentially lead to resource leaks if the Promise never settles. There are many remediations to the problem, like Explicit Resource Management and AbortSignal. However, in practice, they are limited and don't solve the fundamental problem. Instead, generator functions in JavaScript can offer more structured concurrency as they are not constrained by the await event horizon.

frontside.com8 min read

02OPINIONS & ADVICE

THE BEST WEBASSEMBLY RUNTIME MAY BE NO RUNTIME AT ALL

An alternative approach to WebAssembly (WASM) runtimes is no runtime at all. Traditional WASM runtimes like V8, Wasmer, WasmEdge, and Wasmtime are complex and platform-dependent. Instead, transpile Wasm code to C source code using tools like wasm2c or w2c2, which results in human-readable C code that can be compiled and run without the need for a dedicated runtime.

00f.net6 min read

HOW TO PREPARE THE TECHNICAL INTERVIEW

This post shares an experience of preparing for internal interviews to switch teams at Amazon. It emphasizes the importance of making a positive impression on interviewers, both emotionally and rationally, by engaging in meaningful conversations and explaining thought processes clearly. It goes on to outline a strategic approach to interview preparation involving mindset, learning modes, a structured plan, struggle time, and the interview week, highlighting the importance of consistent effort and focus.

strategizeyourcareer.substack.com11 min read

03LAUNCHES & TOOLS

SVGL

A library of free-to-use SVG logos.

svgl.appTool

04MISCELLANEOUS

HOW MANY LINES OF C IT TAKES TO EXECUTE A + B IN PYTHON?

This article delves into the implementation details of how Python handles operations like "a + b" at the CPython runtime level. It discusses the use of the PyObject structure and PyTypeObject structure to enable polymorphism and inheritance in Python objects. The article explores how dynamic dispatch works in Python, including the compilation of Python code to bytecode and its execution by the CPython virtual machine.

open.substack.com10 min read

WHY MULTI-CLOUD: THE 5 BEST REASONS, ACCORDING TO EXPERTS

A multi-cloud architecture is an approach that involves using multiple cloud providers for an application or company. There are several reasons to adopt a multi-cloud approach, including regulatory compliance, avoiding vendor lock-in, meeting customer requirements, gaining leverage in price negotiations with cloud providers, and empowering engineering teams. However, the primary motivation for adopting multi-cloud should be to address business problems rather than technical ones.

cockroachlabs.com6 min read