RSSAmplifier

Blog

ren focus | RSS Feed

Metaphysics, tunes, and code

renfoc.usRSS feed ↗22 posts

Latest posts

not so dirt cheap refactor

This post argues that AI agents haven't actually made refactoring cheaper, they've just made the same risky, all-or-nothing rewrites faster. The real fix, the author says, is doing refactors in small, incremental pieces instead of big sweeps.

what is pitch

A dive into what "pitch" actually is, sparked by a glitchy synth loop that left both my ears and my tuner app stumped. From vibrating air to harmonics, spectrograms, and the Fast Fourier Transform, this post unpacks how tuner apps guess at a note, and why some sounds simply refuse to resolve into one.

antipatterns the blob

The Blob is a class or function that has absorbed too many responsibilities over time until nobody fully knows what it does anymore. It shows up in codebases everywhere, even the best ones, and it tends to freeze you the moment you open it. This post names the pattern, walks through how a Blob grows one reasonable addition at a time, and argues that the first step is not always fixing it today but…

what i look for on code reviews

Nobody formally teaches developers how to review code, so this post shares a personal checklist built from watching teammates and making mistakes. It covers five areas in order: running lint against only the changed files, auditing any new or modified dependencies with npm audit, scanning for anti-patterns like God Objects and dead code, checking for language-specific traps like missing await in…

kratos and mistake literacy

God of War (2005) is used as a lens for examining mistake literacy, the ability to recognize problems before they happen because you have already paid the cost of running into them. The game's repetitive enemy encounters teach players to read the room before reacting, which maps directly to how experienced engineers learn to spot issues early through accumulated failure rather than instruction.…

rust on my bun

After Anthropic acquired Bun.sh, a developer on the team opened a pull request to port the runtime from Zig to Rust using a large language model and a single giant prompt, which set off a wave of community concern and several hundred comments before the PR merged. The Rust codebase quickly accumulated issue tickets pointing out unsafe code and undefined behavior, highlighting the real limits of…

shielding repos on a budget

This tutorial shows how to enforce pull request discipline on a GitHub repository without a GitHub Enterprise account by combining Husky pre-commit hooks with GitHub Actions. A pre-commit hook blocks direct commits to main, while Actions enforce test coverage thresholds, lint checks, a required Miro link in every PR description, and a bot-controlled ready-to-merge label that can only be added by a…

the race down

A personal memory of falling down a mountain at age nine during a birthday hike, where the desire to belong and be liked led to a terrifying accident that left a lasting mark. The aftermath shaped a deep habit of guilt and an overactive sense of responsibility for the people he loves, traced back to lying in a hospital bed worrying about inconveniencing his classmate. The essay closes by reaching…

my review of metroid fusion

Metroid Fusion is reviewed as essential context for understanding Metroid Dread, praised for threading the needle between freedom and frustration, telling its story entirely through environmental details rather than exposition, and accomplishing remarkable atmosphere within the constraints of GBA hardware. The review pushes back on the common argument that Dread made Fusion obsolete, arguing…

the backlog and existence

The media backlog is examined as both a monument to the impossible and a meaningful act of self-cultivation: technology has removed the physical limits on accumulation, making it easier than ever to collect more books, games, and films than one could consume in a lifetime. Seneca's warning that we waste the time we have sits alongside Aristotle's virtue ethics, which frames the act of curating a…

building a js gameloop

This tutorial explains how to build a browser game loop using requestAnimationFrame, which syncs rendering with the display refresh rate and automatically pauses when the tab is hidden. It walks through a reusable GameLoop class that uses delta time to limit frame rate and keep game speed consistent across different displays, then shows how to plug it into a canvas game and integrate it with React…

starting a supabase project

This tutorial walks through setting up a Supabase backend project using Terraform for infrastructure as code, so that all cloud resources are version controlled, reproducible, and free of hardcoded secrets. It covers writing the provider and project resource configuration, managing environment variables safely, and running terraform init, plan, and apply to provision the project. The post then…

call bind or apply

JavaScript functions have three methods for controlling what "this" refers to inside them: call, apply, and bind. Call and apply both invoke a function immediately with a specified "this" value, differing only in how extra arguments are passed (individually for call, as an array for apply). Bind does not invoke the function at all but returns a new function with "this" permanently locked to the…

this quirky javascript

This post explains how the value of "this" in JavaScript is determined by how a function is called rather than where it is written, which is fundamentally different from how other variables work. It walks through the four binding rules (default, implicit, explicit, and arrow functions) using an interview question about a "once" wrapper as the central example. The key takeaway is that regular…

from ad chaos to clarity

When malicious ads start appearing on a news site and the engineering team has no direct control over them, a junior developer named Bob solves the problem not with clever code but by calling the ad network and asking questions until he finds a lever he can pull. The story follows Bob building a simple browser extension that lets editors identify and report bad ad providers, restoring trust…

the poison within patriotism

A personal account of being treated as a foreign visitor despite being a legal citizen illustrates how patriotism draws lines that exclude people regardless of their contributions or legal standing. Martha Nussbaum's critique of patriotic education is used to argue that teaching loyalty to one's country above all else blinds people to shared global humanity and produces the kind of nationalism…

a haunting musical kaleidoscope

The Moog Subharmonicon generates music by mathematically dividing a root frequency into subharmonics, creating rich textures that can sound consonant or hauntingly wrong depending on the divisor, because higher integers produce microtonal intervals that fall between the notes of standard Western scales. Quantization can snap the fundamental oscillators to familiar tuning systems like 12-ET or just…

need more Bertrand and less Seneca

Stoicism offers useful armor against emotional pain by focusing on what's within your control, but its emotional minimalism can become too much armor when what you need is to feel alive again rather than just endure. Bertrand Russell's approach in The Conquest of Happiness offers a warmer alternative: happiness comes from growing your interests outward, engaging with the world, and seeking…

ai is easy with huggingface

This tutorial walks JavaScript developers through using Hugging Face's pretrained models to add AI features to their projects without training models from scratch. It explains the pipeline abstraction, which handles data ingestion, model inference, and output in a single call, and surveys common pipeline types like summarization, translation, and text classification. By the end, any JS developer…

what happened to pwas

Progressive Web Apps promised a write once run anywhere future where browser based apps could match native experiences on any device, but inconsistent support from Apple and Mozilla stalled that vision. Apple restricted key PWA APIs on iOS for years, and Firefox quietly removed installation support in 2021, citing low user interest and fragmenting the ecosystem in Chrome's favor. Mozilla's 2025…

the bare minimum during ai prompt design

AI text generation models are vulnerable to prompt injection attacks, techniques where crafted input steers the model toward unintended goals or leaks sensitive information. This post covers the two main attack types, goal hijacking and prompt leaking, and walks through practical defenses like input validation, instruction precedence, clear delimiters, and stop sequences. Following these practices…

a good commit with empathy

Git commits are a way to save the state of a project, and the commit message carries the responsibility of explaining the why behind each change, not just what the code does. A good message fills in the sentence "If applied, this commit will ___" and includes context like keywords, reasoning, and human-readable explanations that help teammates navigate the codebase. Writing with empathy in commit…