TLDR Web Dev

TLDR WEB DEV 2025-01-27

6 sections17 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01GENERAL

02ARTICLES & TUTORIALS

SO YOU WANNA WRITE KUBERNETES CONTROLLERS?

This blog post discusses common pitfalls in Kubernetes controller development. Important aspects include designing CRDs following Kubernetes API conventions, building single-responsibility controllers, and implementing a well-structured `Reconcile()` method. Developers also need to understand cached clients, handle reconciliation return values correctly, and use the expectations pattern to account for asynchronous updates and stale data in the cache.

ahmet.im17 min read

THE HIDDEN COMPLEXITY OF SCALING WEBSOCKETS

Scaling WebSockets for real-time apps presents unexpected complexities, especially regarding graceful deployments and maintaining persistent connections. Ways to address some of the issues with WebSockets include having a deployment strategy that minimizes downtime by using phased server removal and client-side reconnection logic with exponential backoff. Heartbeat mechanisms can also be used to detect silent disconnects. Finally, a server-sent events (SSE) fallback guarantees reliable communication even on restrictive networks.

composehq.com5 min read

03OPINIONS & ADVICE

LIFE LESSONS FROM THE FIRST HALF-CENTURY OF MY CAREER

David Patterson, a UC Berkeley professor and Google Distinguished Engineer, offers 16 life lessons categorized as people-focused and career-focused. He emphasizes prioritizing family and happiness, highlighting the importance of strong relationships and finding joy in work. Patterson also stresses the value of honest feedback, courageous action, and surrounding oneself with positive influences.

cacm.acm.org19 min read

AI IS CREATING A GENERATION OF ILLITERATE PROGRAMMERS

An over-reliance on AI for coding has diminished this developer's problem-solving skills while coding. He stopped reading documentation and debugging independently, becoming overly dependent on AI for instant solutions, leading to a decline in his abilities and a loss of the satisfaction from solving problems independently. To combat this, he implemented "No-AI Days” while working.

nmn.gl4 min read

YOU PROBABLY DON'T NEED QUERY BUILDERS

The author argues against using query builders in favor of writing SQL directly, claiming that query builders often lead to complex and error-prone code. They show how SQL's built-in capabilities, like handling `NULL` values and conditional logic, can make query construction easier for common scenarios such as filtering based on optional parameters and pagination.

mattrighetti.com9 min read

04LAUNCHES & TOOLS

ORANGE INTELLIGENCE

Orange Intelligence is an open-source, customizable macOS productivity tool that uses a floating window to capture, process (via Python functions and LLMs), and replace text across applications. It offers a more flexible alternative to Apple's built-in intelligence features.

github.comGitHub repository

FORTUNESHEET

FortuneSheet is a JavaScript spreadsheet library written in TypeScript that offers Excel-like features designed for ease of use and maintainability.

github.comGitHub repository

05MISCELLANEOUS

THE LEADING AI MODELS ARE NOW VERY GOOD HISTORIANS

Advanced AI models like GPT-4, o1, and Claude are showing surprisingly strong historical research capabilities, exceeding expectations in transcription, translation, and analysis of historical texts and images. This post provides case studies that showcase these models' abilities to accurately transcribe and translate early modern Italian, analyze obscure 18th-century medical texts, and even generate novel historical interpretations comparable to a first-year PhD student's work.

resobscura.substack.com17 min read

AI SLOP, SUSPICION, AND WRITING BACK

The increasing prevalence of AI-generated content ("slop") is slowly eroding trust online. Instead of directly publishing AI-generated text without significant editing, it's better to use it for augmentation, as a tool, while writing. Writers can actively shape the future of AI by producing high-quality, distinctive content that influences future AI training datasets.

benjamincongdon.me8 min read