TLDR Web Dev

TLDR WEB DEV 2024-08-09

5 sections15 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01ARTICLES & TUTORIALS

COMMON SENSE REFACTORING OF A MESSY REACT COMPONENT

This is a practical guide to refactoring a messy React component through gradual improvements. First, one should make sure that tests are written so that no functional changes occur during refactoring. Then, linting rules should be used to prevent future code duplication and dead code. The guide highlights several key areas for refactoring, including splitting components based on responsibilities and extracting utility functions to improve code organization and maintainability.

alexkondov.com23 min read

HOW WE MIGRATED ONTO K8S IN LESS THAN 12 MONTHS

Figma successfully migrated its core services to Kubernetes within 12 months. Its team scoped the migration to focus on core system changes while maintaining abstraction for users. They implemented load testing, incremental rollout, and real-world workload testing, which led to better reliability with a three-cluster setup.

figma.com20 min read

02OPINIONS & ADVICE

DO QUESTS, NOT GOALS

We should replace the word "goals" with "quests" when thinking about personal aspirations. Goals are often seen as things we'll do later, while quests are more exciting and transformative experiences. The quest mentality encourages us to embark on personal journeys of self-discovery and achievement, rather than just trying to reach a specific destination.

raptitude.com8 min read

ASK HN: SHOULD WE BRING SOFTWARE DEV IN-HOUSE? (HACKER NEWS THREAD)

This executive, who works at a logistics company, is frustrated with the company's inadequate third-party software and considering building their own. They are concerned about the complexity of the transition and the difficulty of attracting tech talent to the non-glamorous logistics industry. Commenters suggest initially hiring a small team of experienced freelancers to test the waters and thoroughly documenting requirements before building a new system with a focus on capturing the company's domain knowledge.

news.ycombinator.com

THOUGHTS ON CANONICAL S-EXPRESSIONS

Canonical S-Expressions (csexp) is a compact and efficient data format that stores data as lists of bytes. It's easy to parse and ideal for storing raw binary data. However, csexp lacks support for complex data structures like associative arrays, requiring custom serialization and deserialization logic.

write.emacsen.net7 min read

03LAUNCHES & TOOLS

STACK AUTH

Stack Auth is a managed user authentication solution. It is developer-friendly and fully open-source. It supports Next.js, has prebuilt auth components, and supports RBAC.

github.comGitHub repository

ROUNDTABLE

RoundtableJS is an open-source JavaScript library for building complex surveys, forms, and data annotation tasks. It's designed to be simple but completely customizable. It makes it easy to add complex logic (e.g. branching, skipping, looping), modify question types, and fully customize the design.

github.comGitHub repository

BUN V1.1.22

Bun v1.1.22 introduces performance enhancements, bug fixes, and Node.js compatibility improvements, including faster Express execution, ES module loading, and Bun.serve() POST requests, as well as reduced memory usage and improved stack traces.

bun.sh13 min read

04MISCELLANEOUS

KLARNA'S AI CHATBOT: HOW REVOLUTIONARY IS IT, REALLY?

Klarna aims to replace 2/3rds of customer support roles with its OpenAI-powered AI chatbot designed to handle basic customer support inquiries. While the chatbot is well-built and handles common questions effectively, it relies on human agents for more complex issues, effectively automating only "L1" support. Automating L1 support is not a revolutionary concept - companies have been doing so for years using various methods.

blog.pragmaticengineer.com13 min read

ENGINEERING THE FIRST FITBIT: THE INSIDE STORY

James Park envisioned a fitness tracker that could encourage people to be active outside the home. Along with his friend Eric Friedman, he co-founded Fitbit, which initially focused on women. After many prototypes and overcoming hurdles in manufacturing and software development, the first Fitbit launched in 2009. The company was sold to Google in 2021 for $2.1B.

spectrum.ieee.org23 min read

INTEL'S IMMISERATION

Intel's Q2 2024 results were disastrous, with revenue down a third compared to three years ago and a bleak outlook for the upcoming quarter. The company announced a 15% headcount reduction in an attempt to cut costs and turn around its fortunes. Despite receiving billions in government subsidies, Intel has struggled to keep up with competitors in the rapidly evolving semiconductor market, particularly in the mobile and AI chip segments.

thechipletter.substack.com9 min read