惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 三生石上(FineUI控件)
博客园 - 叶小钗
博客园 - 聂微东
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Google DeepMind News
Google DeepMind News
Recent Announcements
Recent Announcements
IT之家
IT之家
J
Java Code Geeks
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
I
InfoQ
爱范儿
爱范儿
Vercel News
Vercel News
Apple Machine Learning Research
Apple Machine Learning Research
阮一峰的网络日志
阮一峰的网络日志
博客园 - Franky
U
Unit 42
酷 壳 – CoolShell
酷 壳 – CoolShell
腾讯CDC
F
Fortinet All Blogs
V
Visual Studio Blog
人人都是产品经理
人人都是产品经理

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Dev Log: deleting code and breaking the build on purpose
Ernesto Herrera Salinas · 2026-06-15 · via DEV Community

Day one of building Munchausen v1.0 started with deleting the existing implementation and deliberately breaking its replacement.

Munchausen is a mock-data generator for .NET that infers realistic values from
your types. Before writing v1.0, I spent time designing the API and architecture,
then captured the result in a single design document. At the end, I divided the
implementation into stages: M0 for the repository scaffold, M1 for determinism,
and later milestones for metadata, inference, compilation, and runtime behavior.

The plan gives me a route through the project. Implementation is where I find out
whether those ideas actually hold together, and M0 was the first test.

First move: delete the old thing

The repo already had a prototype from years ago, an early Lie /
ModelGenerator / ValuesGenerator trio and a .travis.yml pinned to a
dotnet-1.0 preview. My first instinct was to keep it nearby. Some of it might be
useful, and deleting code always feels more dramatic than leaving it alone.

Reading it changed my mind. The prototype reflected an earlier idea of the
library, and keeping its types invited me to preserve decisions I had already
reconsidered. Removing it gave me a clean place to test the new design without
negotiating with the old one. The history is still there if I need it.

The satisfying part: breaking the build on purpose

One idea from the design was that the public API should be a deliberate contract,
not whatever happens to escape from the assembly. I added PublicApiAnalyzers,
which tracks every public symbol in two text files. At M0 those files contain no
API entries. The public surface starts at zero and grows only when I consciously
add to it.

Configuring the analyzer was easy. Trusting it was different. I could see that
the package was installed and the build was green, but that did not prove it
would catch the mistake I cared about. So I added a mistake on purpose.

I wrote a throwaway Canary class with one public property and no XML comments,
then committed it. The build went red with exactly the errors I hoped to see:
RS0016 (this public symbol isn't declared in the API files) for the type, its
getter, and even its implicit constructor, plus CS1591 for the missing comments.
One little class tripped both wires at once. Then I removed the canary commit,
rebuilt, and watched the build go green again.

I expected a quick configuration check. Instead, I learned that a green build
only shows the current code passes. A deliberate failure proves the build can
protect a boundary I care about. When later milestones introduce public API, I
know accidental additions cannot quietly slip through.

Giving future problems somewhere to live

The rest of M0 turned design choices into places where future work can happen:
net8.0, nullable reference types, warnings treated as errors, required XML
comments, and a Directory.Build.props that keeps those choices consistent. I
added CI and created six projects for the package, unit tests, acceptance tests,
determinism tests, benchmarks, and shared test models.

The shared models include Car, Owner, Customer/Order/Item, a
positional record, an init-only type, and Employee whose Manager is another
Employee. That last model is a question waiting for a later milestone: what
happens when generation encounters a cycle? I do not need the answer yet, but
putting the model in place now means I cannot conveniently forget the problem
when recursion and cycle detection arrive.

Where this leaves things

Zero features. Zero public API. A green build, a CI pipeline, and a guardrail
I've personally watched fail and recover. More importantly, I finished M0 with a
better understanding of the design than I had when it existed only on paper.
Starting from zero is not empty progress when the boundaries themselves are part
of what you are building.

What's next

M1 takes on the determinism core. Munchausen promises that the same seed produces
the same data forever, across machines, OSes, and .NET versions. .NET doesn't
guarantee that System.Random will preserve its algorithm across versions, so
I'm building an owned PRNG (xoshiro256** seeded by SplitMix64) and validating
it against published reference vectors. If my numbers don't match the ones the
algorithm's authors published, my code is wrong, full stop. That's the kind of
unambiguous test I love. More soon.