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

WHAT'S NEW IN RUBY ON RAILS 8

Rails 8 introduces updates like easier deployments, a modern asset pipeline, improved SQLite capabilities, and more Active Record features.

2024.10.09
blog.appsignal.com9 min readTLDR Web Dev

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:

2024.10.08
sonarsource.comSponsorTLDR Web Dev

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.

2024.10.08
links.tldrnewsletter.com21 min readTLDR Web Dev

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.

2024.10.08
links.tldrnewsletter.com5 min readTLDR Web Dev

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.

2024.10.08
wasmer.io5 min readTLDR Web Dev

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.

2024.10.08
polotek.net5 min readTLDR Web Dev

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.

2024.10.08
lea.verou.me10 min readTLDR Web Dev

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.

2024.10.08
artmann.co8 min readTLDR Web Dev

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.

2024.10.08
docs.python.orgToolTLDR Web Dev

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.

2024.10.08
sq.ioToolTLDR Web Dev

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.

2024.10.08
jazz.tools4 min readTLDR Web Dev

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.

2024.10.08
nickb.website16 min readTLDR Web Dev

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.

2024.10.08
r.ena.to15 min readTLDR Web Dev

THE NINE NODE PILLARS

The Nine Node Pillars are a set of guiding principles for building maintainable Node.js applications that includes advice like not blocking the event loop and always using Node LTS versions in production.

2024.10.08
platformatichq.com4 min readTLDR Web Dev

DOES IT SCALE (DOWN)?

Developers should prioritize scaling down their software first, starting small and only scaling up when necessary, as modern hardware makes it possible to run most applications efficiently on a single server.

2024.10.08
bugsink.com2 min readTLDR Web Dev

6 YEARS WITH GLEAM

Gleam's type system and functional programming approach significantly increases productivity, especially in fast-growing codebases.

2024.10.08
crowdhailer.me4 min readTLDR Web Dev

HOW TO FETCH DATA IN REACT

There are various methods for fetching data in React applications, including server-side fetching with React Server Components, client-side fetching with React Query, hooks, and tRPC.

2024.10.08
robinwieruch.de13 min readTLDR Web Dev

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.

2024.10.07
stacksweep.substack.com6 min readTLDR Web Dev

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.

2024.10.07
janhesters.com37 min readTLDR Web Dev

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.

2024.10.07
links.tldrnewsletter.com7 min readTLDR Web Dev

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.

2024.10.07
links.tldrnewsletter.comTLDR Web Dev

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.

2024.10.07
developing.dev3 min readTLDR Web Dev

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.

2024.10.07
onestack.devToolTLDR Web Dev

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.

2024.10.07
github.comGitHub repositoryTLDR Web Dev

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.

2024.10.07
blog.cloudflare.com9 min readTLDR Web Dev

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.

2024.10.07
vondra.me15 min readTLDR Web Dev

CARTOGRAPHIST

Cartographist is an experimental web browser that encourages rabbit-holing by using horizontally scrollable panes and a tree-structured outline of browsing history that allows for saving and loading "trails" of research sessions.

2024.10.07
szymonkaliski.comToolTLDR Web Dev

CODEAIR

CodeAir is a smartphone-based remote control for VS Code that allows users to transfer files, images, and code between their devices and VS Code, control VS Code instances using voice commands and text, and use AI features for code generation and file analysis.

2024.10.07
codeair.appToolTLDR Web Dev

META MOVIE GEN

Meta has released Movie Gen, which uses AI to generate high-quality videos, edit existing ones, and create personalized videos from text inputs.

2024.10.07
ai.meta.comToolTLDR Web Dev

TYPES OF REACT COMPONENTS [2024]

This is a comprehensive overview of the different types of React components that have evolved since its release in 2013. It starts with older, now deprecated methods like createClass and Mixins, then transitions to Class Components, which were the industry standard before the introduction of Function Components with React Hooks. The article then focuses on the advantages of Function Components and React Hooks, before ending off with React Server Components (the latest addition to the React ecosystem).

2024.10.04
robinwieruch.de12 min readTLDR Web Dev

HOW TO CONTROL A REACT COMPONENT WITH THE URL

React components can be controlled with the URL. An example is shown in this post where URL query parameters are used as the single source of truth for component state, making sure the component and URL stay in sync across different actions. The useSearchParams Next.js hook is used to read and update the URL parameters.

2024.10.04
buildui.com9 min readTLDR Web Dev

A COMPREHENSIVE GUIDE TO NODE.JS ADDONS

Node.js addons are dynamic libraries written in C, C++, or Rust that enhance Node.js applications by providing access to system-level resources, improving performance, and integrating external native libraries with JavaScript code. They are useful for performance-critical tasks, interacting with hardware, and utilizing existing native libraries. These addons work by using the Node-API (N-API) to expose native functions to JavaScript, which are compiled into a binary file (.node) and loaded into the Node.js application.

2024.10.04
mertcan.vercel.app4 min readTLDR Web Dev

ARE SCRUM MASTERS TOO MUCH OVERHEAD?

Scrum Masters can be unnecessary overhead, especially in startups and scale-ups. Instead, Scrum should be a background process, allowing teams to focus on delivering value rather than adhering to strict Scrum practices.

2024.10.04
mdalmijn.com8 min readTLDR Web Dev

I SOLVE PROBLEMS

A developer migrated many of his servers from Linux to BSDs due to their stability and reliability. He focuses on solving client problems effectively rather than selling specific technologies, which has led him to implement a variety of BSD solutions including OpenBSD for security, NetBSD for longevity, and FreeBSD with ZFS for performance and storage.

2024.10.04
it-notes.dragas.net17 min readTLDR Web Dev

Sponsored

🆓 O'REILLY GUIDE: CLOUD NATIVE DEVOPS WITH KUBERNETES

This updated second edition guides you through the growing Kubernetes ecosystem [10] and provides practical solutions to everyday problems. You'll walk through an example containerized application running in Kubernetes step-by-step, from the development environment through the continuous deployment pipeline, exploring patterns you can use for

2024.10.04
resources.doit.comSponsorTLDR Web Dev

CANVAS IS A NEW WAY TO WRITE AND CODE WITH CHATGPT

Canvas is a new interface for ChatGPT that allows users to collaborate with AI on writing and coding projects beyond simple chat. It provides a dedicated space for working on projects, offering features like inline feedback, editing tools, and version control.

2024.10.04
links.tldrnewsletter.com6 min readTLDR Web Dev

ASSISTANT UI

Assistant UI is a set of React components for AI chat, with Langchain, Vercel AI SDK, TailwindCSS, and shadcn-ui integrations. It also supports various models out of the box, like Claude, GPT, and Gemini.

2024.10.04
github.comGitHub repositoryTLDR Web Dev

WHY GUMROAD DIDN'T CHOOSE HTMX

Gumroad initially liked htmx for its new project, Helper, as it was simpler than React. However, Gumroad ultimately used React/Next.js due to htmx's limitations in handling complex user interactions, state management, and scaling with the project's increasing complexity. htmx's server-centric approach led to clunky solutions for features like drag-and-drop, dynamic forms, and real-time collaboration.

2024.10.04
htmx.org6 min readTLDR Web Dev

OPENAI AND ANTHROPIC REVENUE BREAKDOWN

OpenAI, with an estimated $5 billion annualized revenue, dominates the consumer market with ChatGPT, while Anthropic, at $1 billion, relies more heavily on its API business. Despite Anthropic's faster growth, OpenAI still has a significant lead in the consumer market. Both companies have substantial capital requirements and are betting on reduced inference costs, price increases, and a shift towards inference-time compute to improve profitability.

2024.10.04
tanayj.com7 min readTLDR Web Dev

HOW TO SYNCHRONIZE REACTIVE LOCAL-FIRST APPS WITH TINYBASE

TinyBase is an open-source JavaScript data store that can be used to build local-first apps. It provides features like reactivity, offline persistence, and deterministic data synchronization using CRDTs. This article shows how to build a simple app with data structure implementation, local persistence, and real-time synchronization across multiple devices.

2024.10.04
expo.dev16 min readTLDR Web Dev