Email Details

ChatGPT canvas 🎁, OpenAI/Anthropic revenueπŸ’°, choosing work-from-office🏒

Canvas is a new interface for ChatGPT that allows users to collaborate with AI on writing and coding projects beyond simple chat. 

TLDR

 TLDR Web Dev 2024-10-04

πŸ§‘β€πŸ’»

Articles & Tutorials

Types of React Components [2024] (12 minute read)

This is a comprehensive overview of the different types of React components that have evolved since its release in 2013. It starts with older, now deprecated methods like createClass and Mixins, then transitions to Class Components, which were the industry standard before the introduction of Function Components with React Hooks. The article then focuses on the advantages of Function Components and React Hooks, before ending off with React Server Components (the latest addition to the React ecosystem).
How to control a React component with the URL (9 minute read)

React components can be controlled with the URL. An example is shown in this post where URL query parameters are used as the single source of truth for component state, making sure the component and URL stay in sync across different actions. The useSearchParams Next.js hook is used to read and update the URL parameters.
A Comprehensive Guide to Node.js Addons (4 minute read)

Node.js addons are dynamic libraries written in C, C++, or Rust that enhance Node.js applications by providing access to system-level resources, improving performance, and integrating external native libraries with JavaScript code. They are useful for performance-critical tasks, interacting with hardware, and utilizing existing native libraries. These addons work by using the Node-API (N-API) to expose native functions to JavaScript, which are compiled into a binary file (.node) and loaded into the Node.js application.
🧠

Opinions & Advice

Ask HN: For those who can choose to go to the office, and go, why do you go? (Hacker News Thread)

Developers who choose to go into the office voluntarily value the social aspect of office work, finding it great for collaboration, mentorship, and maintaining mental health. Others appreciate the separation of work and home life, the structured environment, and the availability of better equipment and resources at the office.
Are Scrum Masters Too Much Overhead? (8 minute read)

Scrum Masters can be unnecessary overhead, especially in startups and scale-ups. Instead, Scrum should be a background process, allowing teams to focus on delivering value rather than adhering to strict Scrum practices.
I Solve Problems (17 minute read)

A developer migrated many of his servers from Linux to BSDs due to their stability and reliability. He focuses on solving client problems effectively rather than selling specific technologies, which has led him to implement a variety of BSD solutions including OpenBSD for security, NetBSD for longevity, and FreeBSD with ZFS for performance and storage.
πŸš€

Launches & Tools

πŸ†“ O'Reilly Guide: Cloud Native DevOps with Kubernetes (Sponsor)

This updated second edition guides you through the growing Kubernetes ecosystem and provides practical solutions to everyday problems. You'll walk through an example containerized application running in Kubernetes step-by-step, from the development environment through the continuous deployment pipeline, exploring patterns you can use for your own applications. Get it free from DoiT
Canvas is a new way to write and code with ChatGPT (6 minute read)

Canvas is a new interface for ChatGPT that allows users to collaborate with AI on writing and coding projects beyond simple chat. It provides a dedicated space for working on projects, offering features like inline feedback, editing tools, and version control.
Assistant UI (GitHub Repo)

Assistant UI is a set of React components for AI chat, with Langchain, Vercel AI SDK, TailwindCSS, and shadcn-ui integrations. It also supports various models out of the box, like Claude, GPT, and Gemini.
🎁

Miscellaneous

Why Gumroad Didn't Choose htmx (6 minute read)

Gumroad initially liked htmx for its new project, Helper, as it was simpler than React. However, Gumroad ultimately used React/Next.js due to htmx's limitations in handling complex user interactions, state management, and scaling with the project's increasing complexity. htmx's server-centric approach led to clunky solutions for features like drag-and-drop, dynamic forms, and real-time collaboration.
OpenAI and Anthropic Revenue Breakdown (7 minute read)

OpenAI, with an estimated $5 billion annualized revenue, dominates the consumer market with ChatGPT, while Anthropic, at $1 billion, relies more heavily on its API business. Despite Anthropic's faster growth, OpenAI still has a significant lead in the consumer market. Both companies have substantial capital requirements and are betting on reduced inference costs, price increases, and a shift towards inference-time compute to improve profitability.
How to synchronize reactive local-first apps with TinyBase (16 minute read)

TinyBase is an open-source JavaScript data store that can be used to build local-first apps. It provides features like reactivity, offline persistence, and deterministic data synchronization using CRDTs. This article shows how to build a simple app with data structure implementation, local persistence, and real-time synchronization across multiple devices.
⚑

Quick Links

Correcting the record for Continue and PearAI (1 minute read)

Garry Tan, president of Y Combinator, apologizes for initially defending PearAI's inappropriate use of open source code in its AI code editor and acknowledges Continue's positive contributions to the open source community.
Google Recommits to Hybrid Work Schedule Unlike Amazon (2 minute read)

Amazon and Salesforce have mandated full-time return to office work, but Google has reassured its employees that its current hybrid work policy, which allows staff to work remotely at least two days a week, will remain in place.
Terminal colors are tricky (15 minute read)

Terminal colors are tricky due to inconsistent color implementations, contrast issues, program-specific color conflicts, and the impact of different terminal types and color support levels.
The unspoken rules of React hooks (4 minute read)

React's documentation inadequately explains the "unspoken rules" of useEffect dependencies, especially regarding the stability of return values from built-in and third-party hooks.
Response to WP Engine's Meritless Lawsuit (1 minute read)

WordPress founder Matt Mullenweg has published a response to the lawsuit brought on by WP Engine.

Love TLDR? Tell your friends and get rewards!

Share your referral link below with friends to get free TLDR swag!
Track your referrals here.

Want to advertise in TLDR? πŸ“°

If your company is interested in reaching an audience of web developers and engineering decision makers, you may want to advertise with us.

If you have any comments or feedback, just respond to this email!

Thanks for reading,
Priyam Mohanty, Jenny Xu & Ceora Ford


If you don't want to receive future editions of TLDR Web Dev, please unsubscribe from TLDR Web Dev or manage all of your TLDR newsletter subscriptions.

Β© 2024 Email Dashboard. All rights reserved.