TLDR Web Dev

TLDR WEB DEV 2024-05-28

5 sections14 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01ARTICLES & TUTORIALS

OLD DOGS, NEW CSS TRICKS

New CSS features are being introduced quickly, but developers are slow to adopt them. This is due to browser support concerns, lack of visible improvements, and the difficulty of adding new features to code with existing patterns. The best way to start using these better features is to experiment with them in low-cost environments (like side projects) and adopt them incrementally into your codebase.

mxb.dev9 min read

IMPLEMENTING REACT-LIKE COMPOSITION USING GO'S HTML/TEMPLATE

This article presents a way to implement React-like component-based frontend development in Go using the standard library. Its approach defines components using the define function, composes them using templates, and manages state using URL query parameters.

sheshbabu.com8 min read

02OPINIONS & ADVICE

WHAT ARE YOUR TESTING PRO TIPS? (REDDIT THREAD)

Commenters share their tips for better tests, such as making sure to test the behavior you care about, not implementation details. Another tip is to not fall into the “coverage” trap, which in reality is an arbitrary number.

links.tldrnewsletter.com

SHOULD I USE JWTS FOR AUTHENTICATION TOKENS?

JWTs are best designed for large-scale environments like Google or Facebook. Using them for authentication in smaller applications can be unnecessarily complex.

blog.ploetzli.ch4 min read

INSTEAD OF "AUTH", WE SHOULD SAY "PERMISSIONS" AND "LOGIN"

The common use of the term "auth" to refer to both authentication and authorization is confusing. This confusion not only makes communication harder, but also promotes the creation of bad abstractions that combine the two distinct concepts. The terms "login" for authentication and "permissions" for authorization are more clear.

ntietz.com3 min read

03LAUNCHES & TOOLS

TANTIVY

Tantivy is a full-text search engine library that has a configurable tokenizer, tiny startup time, and supports a range of queries, like natural query language.

github.comGitHub repository

COPILOTKIT

CopilotKit is a group of React components that helps integrate AI features into your app. It has components for app-aware AI chatbots, text areas for AI-assisted text generation, and more.

github.comGitHub repository

ARK UI

Ark UI is a headless, open-source UI library with over 30+ components designed for building reusable, scalable Design Systems. It supports many JavaScript frameworks (React, Solid, and Vue) with dedicated packages for each supported framework.

github.comGitHub repository

04MISCELLANEOUS

BIG DATA IS DEAD

The era of “Big Data” is over because data sizes have not grown as rapidly as predicted. Also, hardware advancements have made it easier to handle large datasets. Most organizations do not actually have that much data, and even those with large datasets often only query a small portion of it. The cost of storing and maintaining large amounts of data is often a liability.

motherduck.com18 min read

HOW WE ENABLED ARM64 VMS

Ubicloud successfully enabled ARM64 VMs with only 151 lines of code by standardizing CPU architecture names, automating architecture detection, and adjusting VM placement logic. It had to deal with challenges like inflexible hardware configurations from its bare metal provider Hetzner.

ubicloud.com5 min read