TLDR Web Dev

TLDR WEB DEV 2024-02-29

5 sections15 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01ARTICLES & TUTORIALS

EXPLORING NEXT.JS FORMS WITH SERVER ACTIONS

This tutorial explores forms in Next.js 14 using Next’s App Router, React Server Components (RSC), and Server Actions. It covers React/Next native aspects like useFormStatus, useFormState, and revalidatePath. It also gives insights into form validation using Zod, error handling on a fine- and coarse-grained level, and staying functional without JavaScript in the browser.

robinwieruch.de23 min read

CSS :HAS() INTERACTIVE GUIDE

The CSS :has() selector is a method for targeting and styling elements based on the presence of specific descendants. It opens up a wide range of new possibilities that weren't possible with traditional CSS selectors. For example, it can be used to customize file icons based on their extension without JavaScript and change a modal’s appearance based on certain actions.

ishadeed.com20 min read

SCHEDULING INTERNALS

This post dives into the internals of scheduling and concurrency, showing readers how to handle millions of clients concurrently with just a single thread. It begins by exploring the challenges of creating a server that can handle multiple clients concurrently using threads, going over concepts like stack allocation, performance, and resource management. It then introduces the concept of async I/O, demonstrating how non-blocking sockets can be utilized to achieve concurrency without threads. Code examples are provided to demonstrate the points made.

tontinton.com21 min read

02OPINIONS & ADVICE

12 YEARS AT META

A Meta engineer, who also happens to be the creator of Excalidraw, reflects on their 12 years at Meta. They transformed image tagging on Facebook and championed open-source, leading to the creation and adoption of projects like React and Docusaurus. The engineer is currently focused on client-side performance tooling and AI-powered assistance for internal developers at Meta.

blog.vjeux.com13 min read

ENGINEERS, JOINING AN EARLY-STAGE STARTUP ISN’T FINANCIALLY WORTH IT!

Joining a startup for financial upside is generally not worthwhile compared to staying in Big Tech, since you only get the cash equity if the startup goes public or gets bought out, which takes a long time. Founding engineers usually receive 0.5% equity, which means it takes a $200 million company exit to get $1 million personally. However, joining a startup is great for personal growth. This article includes tips on how to pick the right startup to join.

open.substack.com5 min read

03LAUNCHES & TOOLS

SQL WORKBENCH

SQL Workbench allows you to run and test your SQL queries in the browser.

sql-workbench.comTool

PGS.SH

pgs.sh is a zero-install static site hosting service. It supports unlimited projects, custom domains, custom headers, asset storage, and more. Client-side installation is not required.

pgs.shTool

INGESTR

Ingestr is a command-line application that allows you to ingest data from any source into any destination using command-line flags. It supports multiple sources and destinations, including Postgres, BigQuery, Snowflake, Redshift, and more.

github.comGitHub repository

04MISCELLANEOUS

GPT PILOT – WHAT WE LEARNED IN 6 MONTHS OF WORKING ON A CODEGEN PAIR PROGRAMMER

This author shares the lessons he learned from working on an LLM-based pair programmer called GPT Pilot. It is important to have a clear initial project description, detailed logging, modular code, and focused prompts. AI-driven coding is iterative in nature. The AI copilot was useful when making decisions.

blog.pythagora.ai13 min read

HOW VIDEO GAMES USE LUTS AND HOW YOU CAN TOO

LUTs are simple data tables that remap colors or values. They offer a powerful and efficient way to manipulate how images and videos are displayed. For example, in video games, they can be used to efficiently add color variations to objects in a scene. LUTs can also be used to optimize performance by precalculating expensive operations.

blog.frost.kiwi17 min read