Search the archive

Full-text search across article titles and summaries. Refine with sector, year, content type, and reading-time filters.

Results

9,381 matches

HOW WE MADE A RUBY METHOD 200X FASTER

A performance regression in Campsite's API was identified through observability tools after code was refactored to transform rich text into plain text and Markdown. Profiling revealed that the bottleneck was the use of a certain node lookup. This was replaced with a more efficient HANDLERS_BY_NODE_NAMES hash lookup, which reduced processing time from 200ms to under 1ms.

2024.11.18
campsite.com5 min readTLDR Web Dev

THE PRACTICAL GUIDE TO SCALING DJANGO

Common performance bottlenecks in Django include database queries, template rendering, Python processing, cache misses, file I/O, and network latency. This guide details optimization techniques for each bottleneck, including database query optimization, caching strategies (view-level, fragment, and low-level API), asynchronous operations, background tasks, load balancing, and content delivery network (CDN) usage.

2024.11.18
slimsaas.com4 min readTLDR Web Dev

OPTIMIZERS: THE LOW-KEY MVP

DuckDB's query optimizer improves query performance, often by orders of magnitude, compared to both unoptimized and even hand-optimized queries. This improvement stems from several optimization rules, including filter pushdown, join order optimization, and TopN optimization, which automatically adapts to changing data conditions.

2024.11.18
duckdb.org17 min readTLDR Web Dev

GOOD SOFTWARE DEVELOPMENT HABITS

This developer writes about a few software development habits that have helped him write better software faster. They focus on writing small commits frequently, refactoring continuously, and deploying often. They also often write tests first to define API structures early.

2024.11.18
zarar.dev5 min readTLDR Web Dev

YOU CAN'T BUILD INTERACTIVE WEB APPS EXCEPT AS SINGLE PAGE APPLICATIONS... AND OTHER MYTHS

Modern browsers, coupled with technologies like service workers and the Speculation Rules API, significantly improve Multi-Page-Application (MPA) performance, addressing issues like slow page transitions and offline capabilities. Specific techniques, such as caching strategies and Workbox for service worker automation, can be used to make MPAs more efficient. Interactive web apps aren't only for Single Page Applications (SPAs).

2024.11.18
htmx.org11 min readTLDR Web Dev

Sponsored

AWS GAMEDAY: AN NFL DIGITAL EXPERIENCE

Whether you're a seasoned football enthusiast or a newcomer to the league, immerse yourself in the exciting world of NFL data analytics! This virtual interactive learning exercise [12] puts your AWS skills to the test — including Amazon Athena, Lambda, DynamoDB, and GenAI with Bedrock — in a real-world, gamified, risk-free environment.

2024.11.18
aws.amazon.comSponsorTLDR Web Dev

FAST GRID

Fast Grid is a performant multithreaded web table that's capable of running at 120FPS while sorting, filtering, and scrolling simultaneously.

2024.11.18
github.comGitHub repositoryTLDR Web Dev

LITERAL

Literal is a Ruby runtime type checker that provides types, structured objects, properties, and enums. Its built-in types include generic structures that enable some cool use cases like checking an array is all integers.

2024.11.18
github.comGitHub repositoryTLDR Web Dev

WHY DID WINDOWS 95 SETUP USE THREE OPERATING SYSTEMS?

Windows 95's setup process utilized three operating systems (MS-DOS, Windows 3.1, and Windows 95) to handle upgrades from various starting points. Instead of creating three separate setup programs, developers cleverly designed a chained system using an MS-DOS program to install a minimal Windows 3.1 version, followed by a 16-bit Windows program for core setup tasks, and finally a 32-bit Windows 95 program for final configurations, which minimized code duplication.

2024.11.18
devblogs.microsoft.com5 min readTLDR Web Dev

YC IS WRONG ABOUT LLMS FOR CHIP DESIGN

LLMs produce mediocre Verilog code and cannot design novel chip architectures, unlike skilled engineers. While LLMs can reduce chip design costs, benefiting large companies and potentially smaller startups by enabling leaner teams, they won't create significantly superior chips or open new markets.

2024.11.18
zach.be8 min readTLDR Web Dev

REVERSE ENGINEERING IOS 18 INACTIVITY REBOOT

iOS 18 introduces an inactivity reboot feature that automatically restarts the device after 72 hours of inactivity, requiring any attacker to have kernel-level access within that timeframe to bypass data encryption.

2024.11.18
naehrdine.blogspot.com17 min readTLDR Web Dev

MAP MATRIX

Map Matrix is a React application for comparing multiple maps simultaneously.

2024.11.18
github.comGitHub repositoryTLDR Web Dev

YOU CAN GROW YOUR DEVELOPER INTUITION

Software development is an artistic endeavor that relies heavily on developer intuition, which can be cultivated through deliberate practice, pattern recognition training, experiential learning, and reflection.

2024.11.18
spin.atomicobject.com6 min readTLDR Web Dev

I FOLLOWED THE OFFICIAL AWS AMPLIFY GUIDE AND WAS CHARGED $1,100

This developer was hit with unexpectedly high AWS charges after following the official guide for integrating Amazon OpenSearch with AWS Amplify. He was charged over $1,100 due to the guide's failure to properly manage OpenSearch domain creation and deletion, which led to multiple, concurrently running instances. AWS customer support ultimately waived the charges but the issue persisted until AWS recently fixed its docs.

2024.11.15
elliott-king.github.io6 min readTLDR Web Dev

SQLITE INDEX VISUALIZATION: STRUCTURE

The on-disk and in-memory representations of SQLite index structures using a B-tree model can be visualized using an ImageMagick-based approach. This shows how index size, sorting order (ASC/DESC), data types, and index creation timing impact the B-tree structure and how optimizations are achievable through VACUUM and REINDEX.

2024.11.15
mrsuh.com10 min readTLDR Web Dev

NETFLIX'S DISTRIBUTED COUNTER ABSTRACTION

Netflix developed a distributed counter abstraction built upon its TimeSeries Abstraction to handle massive-scale counting with low latency. This service addresses various counting needs. The system uses a combination of techniques, including event logging, background aggregation with sliding time windows, and caching.

2024.11.15
netflixtechblog.com25 min readTLDR Web Dev

THE PYTHONIC EMPTINESS

Python's PEP-8 recommended method for checking empty sequences using truthiness (e.g., `if not mylist:`) is more Pythonic and efficient than using `len()`. While using `len()` isn't incorrect, the recommended Pythonic approach is simpler, faster, and clearer.

2024.11.15
blog.codingconfessions.com15 min readTLDR Web Dev

AI MAKES TECH DEBT MORE EXPENSIVE

AI increases the cost of tech debt as it boosts the productivity gap between clean and messy codebases. Generative AI tools work best with well-structured, low-complexity code. Companies with legacy systems will struggle to adopt them. To maximize AI's benefits, developers should prioritize refactoring legacy code into modular, well-defined units.

2024.11.15
gauge.sh4 min readTLDR Web Dev

LESSONS FROM MY FIRST EXIT

Michael Lynch, a former Google engineer, sold his bootstrapped hardware company, TinyPilot, for $598,000 after four years of running it. In this post, he details the process, highlighting what he did well (extensive documentation, using a trusted broker, and avoiding seller financing) and what he would do differently (cash buyer incentives and earlier legal counsel). The sale taught him valuable lessons about due diligence, the hidden costs of selling, and the importance of clear contracts.

2024.11.15
mtlynch.io33 min readTLDR Web Dev

WINDSURF

Windsurf Editor is an AI-powered IDE that aims to provide a "flow state" coding experience. Its core feature, Cascade, uses codebase understanding for multi-file editing and intelligent AI-powered suggestions.

2024.11.15
codeium.comToolTLDR Web Dev

REACT QUERY BUILDER

React Query Builder is a customizable React component for creating queries that offers utility functions for various query languages (SQL, MongoDB, etc.). It includes compatibility packages for popular styling libraries like Ant Design and Bootstrap and a React Native component.

2024.11.15
github.comGitHub repositoryTLDR Web Dev

JSON.CPP

json.cpp is a fast, small, and highly compliant JSON library for C++. It's more performant than alternatives (parsing 3x faster and compiling 10x faster), has a much smaller codebase (10x less code), and has better JSONTestSuite conformance than its competitors. The library uses Google's double-conversion library for efficient floating-point number serialization.

2024.11.15
github.comGitHub repositoryTLDR Web Dev

OPENAI, GOOGLE, AND ANTHROPIC ARE STRUGGLING TO BUILD MORE ADVANCED AI

OpenAI, Google, and Anthropic are encountering difficulties in developing more advanced AI models. Their latest projects, including OpenAI's Orion and Google's next Gemini iteration, are falling short of internal expectations. This slowdown is being attributed to challenges in acquiring high-quality training data and the immense costs associated with building and maintaining these massive models.

2024.11.15
archive.ph10 min readTLDR Web Dev

OPEN-SOURCE SOFTWARE IS IN CRISIS

The legal dispute between WordPress and hosting provider WPEngine highlights the "maker-taker" problem in open-source software, where companies profit without adequately contributing back to the projects they utilize. This issue is made worse by increasing reliance on open source. Possible solutions include the commercialization of support services, government funding (as seen in Germany), and social validation through recognition and reward systems.

2024.11.15
spectrum.ieee.org5 min readTLDR Web Dev

O2 UNVEILS DAISY, THE AI GRANNY WASTING SCAMMERS' TIME

“Daisy” is a lifelike AI "granny” designed to waste scammers' time by engaging them in lengthy, rambling conversations. It's trained using real scambaiting content. Daisy can hold conversations indistinguishable from a real person, diverting scammers from genuine targets.

2024.11.15
news.virginmediao2.co.uk8 min readTLDR Web Dev

SQL STYLE GUIDE

Comprehensive SQL guidelines for writing consistent, readable, and portable SQL code.

2024.11.15
sqlstyle.guideToolTLDR Web Dev

WHAT MAKES CONCURRENCY SO HARD?

Concurrency in computer science is difficult primarily because the number of possible states in a concurrent system grows exponentially with the number of concurrent actors and their actions.

2024.11.15
buttondown.com8 min readTLDR Web Dev

Sponsored

AGREEMENT LIFECYCLE

For many organizations, agreement data is trapped in static files, making it difficult to access, update, or connect with systems. A challenge called the Agreement Trap — resulting in an estimated $2 trillion lost in global economic value each year.

2024.11.14
docusign.comSponsorTLDR Web Dev

HOW WE BUILT A SELF-HEALING SYSTEM TO SURVIVE A TERRIFYING CONCURRENCY BUG AT NETFLIX

A concurrency bug in a Netflix internal library was causing CPUs to die at a rate of one every two minutes. Due to the bug being unfixable until Monday, Netflix engineers implemented a self-healing system by pinning their cluster size to the maximum and randomly terminating a few instances every 15 minutes. This let the system stay running until Monday when it could be fixed.

2024.11.14
pushtoprod.substack.com10 min readTLDR Web Dev

ADOPTING BAZEL FOR WEB AT SCALE

Airbnb migrated its large-scale web monorepo to Bazel, Google's open-source build tool, to overcome scaling limitations and inefficiencies in its existing build system. The migration process involved preparing the codebase for Bazel, which involved cycle breaking and automating BUILD.bazel file generation, and then migrating CI jobs to Bazel.

2024.11.14
links.tldrnewsletter.com10 min readTLDR Web Dev

REACT IS A PROGRAMMING LANGUAGE, AND ITS RULES ARE SYNTAX

Refs, which are used to reference DOM nodes, don't work in React Server Components. This limitation stems from the fact that the server doesn't have access to the DOM, which is a browser-specific concept. Allowing refs in Server Components would introduce potential issues with lexical scope and UI consistency.

2024.11.14
buildui.com5 min readTLDR Web Dev

THE MAGIC OF KEEPING ONE LEVEL OF ABSTRACTION PER FUNCTION

It's important to maintain a single level of abstraction per function in code. Mixing different levels of detail within a single function can lead to confusion and make code harder to understand. Break down code into smaller, focused functions so that each function addresses a specific task at a consistent level of abstraction.

2024.11.14
tymzap.com5 min readTLDR Web Dev

EXPO SDK 52

Expo SDK 52 has been released. The New Architecture has been enabled by default for all newly created projects. The release includes React Native 0.76, a stable release of the new expo-video library, beta releases of expo-audio and expo-file-system/next, and large updates to other packages.

2024.11.14
expo.dev26 min readTLDR Web Dev

HYPERDX

HyperDX is an open-source observability platform that allows engineers to quickly diagnose production issues by providing a unified search and visualization interface for logs and traces from any Clickhouse cluster.

2024.11.14
github.comGitHub repositoryTLDR Web Dev