TLDR Web Dev

TLDR WEB DEV 2024-11-21

5 sections17 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01ARTICLES & TUTORIALS

BE CAREFUL WITH USESYNCEXTERNALSTORE

This developer initially created a `useLocalStorage` hook using `useSyncExternalStore` to manage local storage, but encountered an infinite render loop when storing non-string values due to React's comparison of objects. To resolve this, the hook was edited to serialize and deserialize data using `superjson`, which handles non-primitive types more effectively than `JSON.stringify` and `JSON.parse`.

nico.fyi6 min read

WHAT ARE REACT PORTALS?

React Portals offer a way to render a component's children outside its parent's DOM hierarchy. This is useful for elements like modals and notifications that need to be displayed at the top level of an application.

techhub.iodigital.com5 min read

5 DIFFERENCES BETWEEN REACT SERVER COMPONENTS AND SERVER-SIDE RENDERING

Server Components reduce client-side JavaScript by rendering static parts on the server, skipping hydration, and avoiding bundle bloat. SSR pre-renders HTML on the server, but still sends the full app bundle to the client for hydration, increasing load times. While SSR supports interactive components throughout, Server Components isolate static and interactive parts.

tymzap.com7 min read

02OPINIONS & ADVICE

HOW TO COPE WITH TECHNOLOGY FOMO

Many developers feel anxiety about keeping up with the constant churn of new technologies. However, chasing the latest trends is not as important as understanding foundational "keyframe" technologies and the problems they solve. This lets developers pick up new things quickly whenever they need to.

avdi.codes7 min read

HOW WE CHOOSE TECHNOLOGIES

PostHog prioritizes adopting new technologies when facing urgent problems like excessive costs or scaling challenges. Decisions are made asynchronously through a request for comments (RFC) process and the team continuously evaluates their technology stack to make sure it aligns with their long-term goals.

newsletter.posthog.com9 min read

03LAUNCHES & TOOLS

OPENNEXT

OpenNext is a tool that allows developers to deploy Next.js applications across various environments, including AWS Lambda and traditional Node.js servers. It aims to support all Next.js 14 features and is actively maintained by the SST community.

github.comGitHub repository

INTRODUCING WORKFLOWS: CICD BUILT FOR YOUR APP

Expo Workflows is a new CI/CD service that allows developers to automate their entire app development process, from building and testing to submitting to app stores. It offers pre-packaged jobs for common tasks and the ability to create custom jobs, triggered by GitHub events or manually via EAS CLI.

expo.dev5 min read

LEGEND LIST

Legend List is an experimental React Native library that aims to be a higher-performing replacement for FlatList, especially for lists with dynamically sized items.

github.comGitHub repository

04MISCELLANEOUS

HOW GOOGLE SPENT 15 YEARS CREATING A CULTURE OF CONCEALMENT

Google created a culture of concealment to avoid antitrust litigation by encouraging employees to delete messages, avoid certain words, and include lawyers in communications. This practice was revealed through court documents and testimony in three antitrust trials against Google.

archive.ph14 min read

AAA - ANALYTICAL ANTI-ALIASING

This article explores various anti-aliasing techniques in computer graphics, starting with simple methods like SSAA and MSAA and progressing to more advanced techniques. It then goes through post-processing methods such as MLAA and FXAA. The article's core focus is on Analytical Anti-Aliasing (AAA), a novel approach that achieves smooth, sharp results by directly calculating anti-aliased pixels based on the shape's mathematical definition.

blog.frost.kiwi36 min read

STATE OF HTML 2024

The State of HTML 2024 report shows that developers are adopting new HTML features, such as dialog and inert, while being frustrated by areas of friction like inconsistent browser support. There's a growing reliance on modern standards for accessibility and interactivity.

2024.stateofhtml.comTool