Tag
Javascript
Every article tagged Javascript across the Atmosphere.
309articles
Articles
Publications
Mood-Based Variable Namer: An AI-Powered Identifier Generator
I was asked to build a utility that suggests variable names based on the developer's current emotional state. Naturally, I built a full strategy pattern with sentiment analysis. // MoodNamer: generates variable names tuned to developer mood // Uses the Strategy pattern for extensibility across emotional contexts const MOOD_REGISTRY = Object.freeze({ HAPPY: 'happy', ANGRY: 'angry',...JavaScriptAI Code Review
Enterprise-Grade Sandwich Order Validator
I was asked to write a small utility that checks if a sandwich order is valid. Here is what came out. // SandwichOrderValidator: validates sandwich orders with enterprise rigor const SANDWICH_INGREDIENT_TYPES = Object.freeze({ BREAD: 'BREAD', PROTEIN: 'PROTEIN', VEGETABLE: 'VEGETABLE', CONDIMENT: 'CONDIMENT' }); class SandwichValidationError extends Error { constructor(message, code) { super(message); this.name = 'SandwichValidationError'; this.code...JavaScriptAI Code Review
A Rate Limiter
We need to implement a rate limiter that controls the frequency of requests or operations. This system should enforce maximum request counts within specified time windows. // Rate Limiter Implementation with Advanced Token Bucket Strategy class RateLimiterConfig { constructor(maxRequests, windowMs) { // Store the maximum number of requests allowed this.maxRequests = maxRequests; // Store the...JavaScriptAI Code Review
A Countdown Timer
A countdown timer application that tracks time remaining and triggers actions when complete. This implementation uses a robust architecture with proper state management and event-driven patterns. // Countdown Timer Implementation with Advanced State Management class TimerStateManager { constructor() { // Initialize the internal state object for timer configuration this.state = { totalSeconds: 0, remainingSeconds: 0,...JavaScriptAI Code Review
Introducing the sequoia-recommend button
The sequoia-recommend button lets readers recommend your Sequoia posts directly from your site using their Bluesky account.
1
Experimental DTLS Support in Node.js
An experimental implementation of the DTLS protocol is coming to Node.js, bringing TLS-equivalent security to datagram-based communication over UDP.javascriptnetworking
Build a Self-Aware Code Comment Analyzer That Rates How Useful Comments Are
A developer wants to build a tool that analyzes code comments and rates them on a scale of usefulness, determining whether comments actually explain the why/how or just restate the obvious code. The tool should categorize comments and suggest improvements. // CommentAnalysisEngine.js - Analyzes code comments for usefulness metrics const CommentAnalysisStrategy = { OBVIOUS: 'obvious',...1
Bluesky API Info
A reference page for making stuff using Bluesky's public API.BlueskyResources
Advanced QUIC
This is Part 5 in a series on the new `node:quic` module in Node.jsjavascriptnetworking
HTTP/3 Over QUIC in Node.js
This is Part 4 in a series on the new `node:quic` module in Node.jshttp3javascript
QUIC Streams - Sending and Receiving Data
This is Part 3 in a series on the new `node:quic` module in Node.jsjavascriptnetworking
QUIC Endpoints, Sessions, and the QUIC Connection Lifecycle
This is Part 2 in a series on the new `node:quic` module in Node.jsjavascriptnetworking
QUIC and HTTP/3 Come To Node.js (finally)
A functional implementation of the QUIC and HTTP/3 protocols has finally landed in Node.js.http3javascript
npm's Defaults Are Bad
The npm client's default settings are a root cause of JavaScript's recurring supply chain security problems.package-managersjavascript
Building More Resilient Local-First Software with atproto
atproto has the potential to become a rock-solid replacement for the most fragile part of any local-first app: the sync server.11
2 AI or not 2 AI... Is really not the question
Should Node.js accept AI-generated code? tl;dr Yes, it should.aijavascript
This blog now runs on vinext
This blog has been updated to use vinext, a Vite-based framework that provides a Next.js App Router-compatible API.javascripttooling
Stress testing Claude's language skills
Polyglot or poly-not?AILLMs
Hello World
I'm James, and the code above is Hello World in PowerShell. Long ago, I worked on the PowerShell team and helped build a really beautiful and interesting scripting language. In the past couple of decades I've been continuing to explore and grow the capabilities of the language, and have beamed with pride as more and more people have been inspired.PowerShellHTML
importmap.lock: a lockfile for the web
Extending import maps with package metadata to improve dependency management and security for browser-native JavaScript.package-managersjavascript
Two Days, Fifteen Commits: Building for the Person You Love
When your partner's game experience is broken, you build them something better. A 48-hour journey through 3D dice, iOS Safari bugs, and the UX of joy.claude-codehugo
The Nine Levels of JavaScript Dependency Hell
Come, I will show you what I have seen.package-managersjavascript