ππ§ How Node.js Works Behind the Scenes (Deep Dive)
PLUS: How Cursor Indexes Code β‘, Distributed Concepts Deep Dive π, Reverse Engineering PowerPoint π¨
Happy Monday! βοΈ
Welcome to the 363 new hungry minds who have joined us since last Monday!
If you arenβt subscribed yet, join smart, curious, and hungry folks by subscribing below.
π Software Engineering Articles
Master session management with cookies and tokens for better security
How Google handles tech debt efficiently in its engineering teams
Learn about 5 core distributed concepts every developer must understand
Revolutionary web performance tips to speed up your site
Discover how Cursor indexes codebases lightning fast
ποΈ Tech and AI Trends
Apple partners with Anthropic to build a revolutionary coding platform
Uber expands robotaxi service to 15 new cities
Stripe launches stablecoin accounts in over 100 countries
π¨π»βπ» Coding Tip
Use Go's select with a timer for graceful timeouts in concurrent operations
How Node.js Works Behind the Scenes β‘
Node.js powers millions of backend applications by executing JavaScript code through an event loop with multiple specialized phases. Understanding how it works internally is crucial for writing performant server-side applications that handle concurrent operations efficiently.
The challenge:
A runtime that can process async operations like file I/O and network requests without blocking while maintaining predictable execution order across different types of operations.
Implementation highlights:
Event loop phases: Multiple specialized phases (timers, poll, check etc.) to handle different types of operations efficiently
libuv integration: C library that provides cross-platform async I/O operations and event loop implementation
Poll phase optimization: Blocks efficiently waiting for I/O events rather than spinning the loop
process.nextTick: Special queue that runs after each phase for fine-grained control
Promise microtasks: Lower priority than nextTick but higher than macrotasks for predictable async execution
Results and learnings:
Efficient I/O: Non-blocking handling of file and network operations
Predictable order: Well-defined phase sequence ensures consistent execution patterns
Developer-friendly: Familiar JavaScript APIs while handling complex async operations under the hood
Node.js shows that with careful system design, we can build powerful server-side applications using JavaScript. Understanding the event loop phases helps write better code by working with the runtime rather than against it.
Session Management Demystified: Cookies, Tokens, and Security
How JWT Works β¨
Written by
How Google Measures and Manages Tech Debt
Written by
How I Built An Online Audience of 500,000+ People and Counting
Written by
How Cursor Indexes Codebases Fast
Written by
5 Core Distributed Concepts Every Developer Should Know
5 Bold Software Dev Moves Everyone Called CrazyβUntil They Worked
5 high-stakes software dev strategies that transformed supposed chaos into competitive advantages for tech co's unafraid to break the rules.
ARTICLE (impact and taste in life)
Impact, Agency, And Taste
ARTICLE (diagrams for concurrency)
Concurrency Diagram
GITHUB REPO (surf the web with sense)
SurfSense: Open Source Alternative to NotebookLM
GITHUB REPO (void the editor)
Void Editor
ARTICLE (HTML includes mystery)
Seeking an Answer: Why can't HTML alone do includes?
ARTICLE (anubis saves the day)
The Day Anubis Saved Our Websites From a DDoS Attack
ARTICLE (web speed hacks 2025)
14 Web Performance Tips for 2025
ARTICLE (powerpoint hacking)
Reverse Engineering PowerPoint's XML to Build a Slide Generator
ARTICLE (LLMs are not magic)
As an Experienced LLM User, I Actually Don't Use Generative LLMs Often
ARTICLE (getting things done in big tech)
Getting Things "Done" in Large Tech Companies
Want to reach 180,000+ engineers?
Letβs work together! Whether itβs your product, service, or event, weβd love to help you connect with this awesome community.
π€ Apple and Anthropic Team Up to Build AI-Powered Coding Platform (2 min)
Brief: Apple partners with Anthropic to develop an AI coding tool using Claude Sonnet for writing, editing, and testing code, potentially integrating it into Xcode for internal use first.
π Uber Pumps $100M into WeRide to Scale Robotaxis to 15 New Cities (2 min)
Brief: Uber doubles down on autonomous vehicles with a $100M investment in WeRide to expand their robotaxi partnership to 15 more cities, focusing on Europe and beyond.
π Google's Gemini 2.5 Pro Update Enhances AI Coding Capabilities (2 min)
Brief: Google's latest Gemini 2.5 Pro update significantly improves the AI model's coding performance, making it more efficient and accurate for developers.
π° Stripe Expands Stablecoin Payments to 100+ Countries, Leveraging USDC and USDB (2 min)
Brief: Stripe now enables merchants in 100+ countries to hold and transfer funds via stablecoins (USDC and USDB), accelerating cross-border payments and deepening its fintech ecosystem.
π€ Amazonβs "Vulcan" Robot Can Now FeelβBut Wonβt Replace Workers (3 min)
Brief: Amazon unveils Vulcan, a touch-sensitive warehouse robot that handles 75% of inventory items, operates 20 hours/day, and aims to reduce worker injuriesβbut insists itβs not replacing humans.
π¨ Figma Launches AI-Powered 'Vibe-Coding' for Automated Web & App Design (3 min)
Brief: Figma introduces AI-driven "vibe-coding", allowing users to generate functional app and website code from text prompts or existing designs, with premium access starting at $16/month and integration of Anthropicβs Claude AI model.
This weekβs coding challenge:
This weekβs tip:
In Go, use select
with a default case and a timer to implement graceful timeouts for concurrent operations while still processing results that arrive within the time window. This pattern provides more control than context-based timeouts and allows partial results to be handled.
Wen?
Distributed systems: Collecting partial results from multiple services when complete responses aren't critical.
Resource cleanup: Gracefully shutting down goroutines while still processing in-flight requests.
Batch processing: Implementing "process as much as possible within time window" scenarios.
βLife without love is like a tree without blossoms or fruit.β
Kahlil Gibran
Thatβs it for today! βοΈ
Enjoyed this issue? Send it to your friends here to sign up, or share it on Twitter!
If you want to submit a section to the newsletter or tell us what you think about todayβs issue, reply to this email or DM me on Twitter! π¦
Thanks for spending part of your Monday morning with Hungry Minds.
See you in a week β Alex.
Icons by Icons8.
*I may earn a commission if you get a subscription through the links marked with βaff.β (at no extra cost to you).
Thanks for the mention, Alex!