TLDR Web Dev

TLDR WEB DEV 2025-01-06

5 sections16 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01ARTICLES & TUTORIALS

BUILDING A POLITE & FAST WEB CRAWLER

A Mozilla engineer noticed that poorly-behaved bots, primarily from OpenAI and Amazon, caused 70% of the load on Diapsora's servers (an open-source social network). To address this, he built a “polite and fast” web crawler using Python and gevent, prioritizing respectful rate limiting by defaulting to one request per domain every five seconds and dynamically adjusting based on server responses. The crawler efficiently manages the queue by fetching robots.txt files in parallel and uses a sophisticated refetching strategy using HTTP headers to minimize redundant requests.

cameronboehmer.com4 min read

YOU DON'T NEED NEXT.JS

ComfyDeploy migrated its dashboard from Next.js to a plain React setup, which improved build times (from 3 minutes to 18 seconds) and hot reload speed (under 200ms). This decision was driven by escalating Vercel costs, testing difficulties with Next.js's server actions, and painfully slow local development. The migration incorporated TanStack Router and Rspack, forcing architectural improvements and cleaner code.

comfydeploy.com6 min read

BACK TO BASICS: WHY WE CHOSE LONG POLLING OVER WEBSOCKETS

Inferable chose HTTP long polling over WebSockets for its real-time system due to scalability challenges with its Node.js/TypeScript backend and PostgreSQL database. Long polling, unlike short polling or WebSockets, keeps the connection open until data is available or a timeout is reached, offering a balance between immediacy and resource efficiency. This approach avoided complexities associated with WebSockets, such as adapting its observability stack, authentication mechanisms, and infrastructure configurations.

inferable.ai10 min read

02OPINIONS & ADVICE

HOW AI-ASSISTED CODING WILL CHANGE SOFTWARE ENGINEERING: HARD TRUTHS

There are two developer types: "bootstrappers," who use AI for rapid prototyping, and "iterators," who use AI in daily workflows. While AI accelerates development a lot, it introduces challenges like the "70% problem," where achieving the final 30% of software quality requires real human expertise. As a result, AI makes the lives of experienced software engineers easier, but doesn't replace them.

newsletter.pragmaticengineer.com25 min read

REFLECTIONS

Sam Altman reflects on OpenAI's journey, the unexpected success of ChatGPT's launch, and the subsequent rapid growth. It was challenging and messy to build a company around groundbreaking technology, as shown by his own public firing and subsequent reinstatement. He's learned a lot and will be more confident moving forward.

blog.samaltman.com11 min read

03LAUNCHES & TOOLS

Sponsored

CKEDITOR: A VERSATILE RICH TEXT EDITOR THAT'S COMPATIBLE WITH ANY JAVASCRIPT FRAMEWORK

Need to add WYSIWYG HTML editing to an app or a website? CKEditor is a modern, feature-rich JavaScript editor that's infinitely customizable [9] (frontend + backend) to build exactly what you need. It's production-ready, comes with a sleek and collaborative UX, and works with your tech - TypeScript, React, Vue.js, and more. Start for

ckeditor.comSponsor

LOGLAYER

LogLayer is a JavaScript logging library that provides a consistent logging experience across different logging providers. It offers a flexible API for adding tags, metadata, and errors to log messages, supporting multiple loggers simultaneously (e.g., DataDog and New Relic).

loglayer.devTool

TAILWIND CSS MOTION

A Tailwind CSS plugin that lets you animate any element with inline styles. It also comes with a Chrome extension to let you play with animating your website directly.

github.comGitHub repository

CSS FLEXBOX PLAYGROUND

Experiment with different flex properties to understand how they affect layout. CSS code is generated in real time and controls are available for finetuned adjustments.

yoavsbg.github.ioTool

04MISCELLANEOUS

YOU WOULDN'T DOWNLOAD AN AI

This developer extracted an AI model from Microsoft's Seeing AI app. The app's model was found encrypted within the APK file as a TensorFlow Lite model. It was then verified using Netron, which led to the successful extraction of the AI model's weights and biases.

altayakkus.substack.com5 min read

CAN LLMS WRITE BETTER CODE IF YOU KEEP ASKING THEM TO “WRITE BETTER CODE”?

An LLM was told to "write better code," which led to performance improvements in a Python program through multiple iterations. However, the improvements eventually plateaued, and the code became over-engineered. A second experiment used more precise prompt engineering, explicitly outlining optimization goals, which eventually led to a 100x speedup.

minimaxir.com22 min read