TLDR Web Dev

TLDR WEB DEV 2025-06-03

5 sections15 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01ARTICLES & TUTORIALS

DO NOT ASSERT ON REQUESTS (DO THIS INSTEAD)

Instead of directly asserting on API requests in UI tests, it's better to focus on testing UI state. This is because users don't care about API calls and only about the UI's behavior. For example, instead of asserting that a POST /cart request was made, you should test that clicking "Add to cart" shows the success message to emulate real user experience.

epicweb.dev7 min read

NO SERVER, NO DATABASE: SMARTER RELATED POSTS IN ASTRO WITH `TRANSFORMERS.JS`

This article goes over how to implement smarter related-post suggestions for an Astro blog using Hugging Face's transformers.js, without needing servers or databases. It uses embeddings, which capture the meaning of text using numeric vectors, and cosine similarity to find posts with similar content. The entire workflow is shown: loading markdown files, generating embeddings with transformers.js, calculating similarities, and displaying the top related posts.

alexop.dev8 min read

02OPINIONS & ADVICE

MY AI SKEPTIC FRIENDS ARE ALL NUTS

LLMs are not a fad and are already impacting software development by automating tedious tasks and boosting productivity. Modern LLM-assisted coding and agents that can access and modify codebases are more advanced than anything before.

fly.io15 min read

03LAUNCHES & TOOLS

SNAPDOM

snapDOM is a fast, dependency-free JavaScript library that captures HTML elements as scalable SVG or raster images. It preserves styles and supports features like shadow DOM, with options for customization.

github.comGitHub repository

KAN

Kan is an open-source Next.js-based project management tool and a Trello alternative. It has features like board visibility, member collaboration, Trello imports, and integrations.

github.comGitHub repository

04MISCELLANEOUS

DECORATIVE TEXT WITHIN HTML

Decorative text and unconventional spacing can be used within HTML attribute values to improve readability. Techniques like brackets, extra spaces, emojis, Unicode characters, and even ASCII art within class names are useful for visual grouping and commenting.

shkspr.mobi5 min read

AI MAKES THE HUMANITIES MORE IMPORTANT, BUT ALSO A LOT WEIRDER

Generative AI presents both challenges and opportunities for the humanities. AI elevates the importance of humanistic skills, especially in language processing and cultural understanding, but it also undermines core aspects of education by letting students bypass real intellectual engagement.

resobscura.substack.com14 min read