👉 Full lesson with practice questions on DevLadder (free, lesson 3 of 8 in the SOLID Principles with Examples course) If S is a subtype of T, objects of type T may be replaced by objects of type S without breaking the program. Subclasses must honour the base class's contract: no stronger preconditions, no weaker postconditions, no surprise exceptions. // ❌ Classic violation: Square changes Rectangle's behaviour public class Rectangle { public virtual int Width { get; set; } public virtual int Height { get; set; } public int Area => Width * Height; } public class Square : Rectangle { public ove
When you build a personal finance app, you start with the features you think will be hardest: Room database encryption with SQLCipher. On-device machine learning classifiers. Multi-threaded SMS regex pipelines. You assume that tracking loans to friends will be the easiest feature in the entire project. After all, it's just basic arithmetic: $\text{lent} - \text{repaid} = \text{balance}$. I could not have been more wrong. Over the development journey of FinLedger—from early v1.0 prototypes to our comprehensive v2.1 architectural audit (docs/audit/FINLEDGER_FEATURE_AUDIT_MASTER.md)—the Lending a
Five changes took this portfolio from about 46 fps mid-page to 60 fps in the hero and the mid fifties lower down. It removed backdrop blur over the canvas, dropped blend modes, froze the orbs, gave the WebGL field adaptive quality, and deferred its scripts. Why was the first version slow? The site runs five apps as live demos inside phone and laptop frames. Behind them a Three.js field draws 2,600 dust particles, a 150-node synaptic lattice with travelling pulses, and holographic shards. The canvas changes on every frame. The first version held up in the hero and then dropped to about 46 fps m
09:12. I open the pull request and there it is, three words under a line of my code, in red. "This is wrong." No line number beyond the one it sits on. No "because". No "try this instead". Just the three words, and a name beside them I recognise from the team list, and a little grey timestamp that says it arrived at 08:47, twenty-five minutes before I got to my desk. I read it again. Then I read it a third time, slower, as if the extra words might be hiding between the three that are there. They are not. The line it sits on is mine. It sorts a list of invoices by date, and I wrote it on Tuesda
A distance eye test has one hard requirement: the letter on the screen has to be a known physical size, at a known distance. The browser gives you neither. A CSS pixel isn't a physical unit, there's no API that reports millimetres, and devicePixelRatio tells you about device pixels, not about the size of the glass. We built a free eye test that runs in a browser tab anyway (anpheros.com/eye-test). This post covers how it gets a physical size out of a web page, the maths that turns a distance into a letter height, and where the precision quietly runs out. Step 1: a ruler everyone carries Bank c
Most engineers can design a scalable system on a whiteboard. The difficult part begins when Kafka duplicates an event, PostgreSQL loses a… Continue reading on Engineering Under Pressure »
HikariCP exhaustion, PostgreSQL deadlocks, Kafka duplicates, JVM memory pressure, and the Spring Boot mistakes that turn ordinary… Continue reading on Coding Odyssey »
The app ran fine in the browser. On your laptop, flutter pub get refuses. Here’s what the error means and the fix that won’t break the… Continue reading on Medium »
Góc nhìn kỹ sư: Thinking Machines Lab vừa phát hành Inkling 2 Mini, mô hình ngôn ngữ mở 26,4 tỷ tham số ứng dụng kỹ thuật lặp tầng trung gian (Looped Transformer) giúp đạt năng lực xử lý tương đương 48 tầng tính toán trong khi dung lượng checkpoint chỉ khoảng 20GB. Đột phá này cho phép các kỹ sư vận hành các tác vụ lập trình tự hành (agentic coding) và phân tích tài liệu đa phương thức trực tiếp trên máy Mac 32GB RAM hoặc GPU đơn lẻ. Điểm nhấn kiến trúc cốt lõi Tái sử dụng tầng tính toán: Bước chuyển dịch phá vỡ nút thắt bộ nhớ VRAM Thinking Machines Lab vừa chính thức phát hành Inkling 2 Mini
Your API is running. You want to poke at it: curl an endpoint, check a file it wrote, run a migration against the same database. How do you do it? You open a new terminal tab. It starts in your home folder, so you cd to the project. The API runs with DB_PORT=55433 and an API key, and the new tab has neither. So you copy them from your .env, or source it, and hope it's the same file the API used. Ten minutes later you have five tabs and don't remember which one belongs to what. With cmdbook, you open the terminal from the running command itself. Here's how 1. Run the command. Your API, from cmd
If you quote, benchmark or budget an open-weight model by one price per model, one number is standing in for a spread of sellers and serving precisions. This post shows how wide that hidden spread was on one day, how to measure it with an open daily price index, and what to print beside any price so a reader can judge it. A model name is not a price. OpenRouter, a marketplace that resells many providers' model APIs, lists the same open weights from many providers. Each provider runs one or more endpoints (a separately priced deployment of the model) and sets its own rate. A per-model price, wh
Yes, often in seconds. Whether a redacted PDF can be unredacted depends entirely on how the redaction was done. A black box drawn on top of the text hides nothing: select it, copy it, paste it into Notepad and the words are back. A real redaction removes the text under the box, but even then the same name can sit on another page, in the file's properties or in a bookmark. I didn't want to repeat the usual warnings, so I built a test file and redacted it four different ways, then tried to get the hidden details back out. This is what came back, and how to check your own file before you send it.
AI coding assistants can produce code quickly, but speed does not tell you whether a repository can guide, observe, and constrain that work. A project may have instructions and still lack tests, feedback, or a deterministic way to detect regressions. The Harness Score Live Demo is a small open-source repository that turns this problem into a runnable lesson. It is an interactive presentation in Brazilian Portuguese, backed by real repository artifacts and scripts. You can run the presentation, inspect the checks, and measure the repository with Harness Score. This tutorial uses the current mai
Vercel said "Ready". My users got nothing. Twelve seconds after I hit deploy, the dashboard showed "Deployed to Production" and "Ready". I turned off Deployment Protection, opened the URL — and every single route answered 500. Not one route. All of them. The root page. The health check. The API. FUNCTION_INVOCATION_FAILED, error rate 100%. That is the worst kind of failure in software: the deploy is green and the service is dead. Nothing in the dashboard says "broken". Nothing is red. The production deployment says "Ready" while serving nothing at all. And the cruelest part: everything had pas
TL;DR: Most scope creep starts with a sentence nobody wrote down. This post covers a simple routine for recording scoping calls: get consent, record only the call window, drop a marker when scope is agreed, then check your recap against the transcript. I also explain how a bot-free recorder works on macOS. Disclosure: I'm Nika, and I built Replay, the Mac app I use as the example here. It's $10 once. The routine itself works with any recorder. Why scoping calls deserve a recording A scoping call is where a freelance project gets its shape. It's also where it starts to drift. "Can it also expor
I have 60+ prompt files. Most teams have a prompts.txt graveyard — 200 prompts nobody can find, all slightly different, none evaluated. The difference between a prompt collection and a prompt library is structure. I packaged the organized version into a $15 kit. The taxonomy that makes prompts findable Flat prompt dumps fail because retrieval is the bottleneck. Organize by task type × cognitive mode: extraction/ — pull structure from messy input (ticket→JSON, table→markdown) reasoning/ — think through a problem (pre-mortem, five-whys, assumption inventory) writing/ — produce prose (status upda
Fresh paired check: November 21, 2026 I reran the 184-question set against a private, immutable copy of the current 112,699-passage index. The first stage now includes E5 and a BM25/RRF lane. This is a comparison within the current pipeline, not a controlled comparison against November 8: the corpus and pipeline changed between those dates. The frozen vector candidate lists contained 88 to 173 passages per question (mean 138), before selecting the final 12. Here title means note-title questions, body means opening-paragraph questions, bridge means linked-note targets and temporal means superse
The Minimalist GUI Dilemma: Why Standard Python Toolkits Fall Short You write a sixty-line Python script that renames files, trims logs, or wraps a local command, and suddenly you hit a wall. You want a real desktop window—no browser tab, no 300 MB runtime bundle, and no interface that looks like a Windows 95 control panel. Standard Tkinter ships with Python, so it seems obvious, until you launch it and see boxy borders, stiff spacing, and unscaled fonts on a high-DPI monitor. That ugliness is not an accident of bad taste; it is a mechanical consequence of how Tkinter bridges Python to Tcl/Tk
Paragon AI MAG — Series 4, Episode 4: "How the AI Tools You Use Actually Work" Verdict: WATCHING In Austin, Texas, passengers can now summon and ride in a commercial taxi with no driver at all — and the newest prototypes have no steering wheel, no pedals, and no mirrors. Yet in San Francisco, an autonomous vehicle struck a pedestrian who had been thrown into its path by another car, misunderstood what had happened, and dragged her 20 feet toward the curb. Both of these stories are true. That contradiction is the whole story of self-driving cars in 2026: a technology that is already working, al
Every photo scavenger hunt has a moment where the player looks up from the screen, turns around slowly, and says "that's not right". The app is working. The GPS is right. The photo is on their screen. And yet the moment feels arbitrary, and when it finally clicks they are not sure whether they earned it or got lucky. We have built a lot of hunts now, and we have watched this moment happen more times than we can count. It is the single thing that separates a hunt that feels generous from one that feels like a guessing game. And almost none of it is about GPS accuracy or image matching. It is ab