20 Years of C#: What Engineering Taught Me About Research

Twenty years of shipping software leaves habits. Four of them turned out to be research habits in disguise, and one of them had to be thrown away.

Language versions [EN] [中文]
Cite

I wrote my first line of C# professionally in 2006. The habits that survived are the ones I now use on research problems, and it is worth being explicit about which is which.

Habit one: make the failure reproducible before fixing it

The single most valuable engineering habit, and it transfers whole. A bug you cannot reproduce is a rumour. A failed experiment you cannot reproduce is also a rumour, and research tolerates rumours far too comfortably.

Practical form: every capture in this lab is replayable byte for byte, and if I cannot replay it I do not draw a conclusion from it.

Habit two: version everything, including the environment

In .NET this was Directory.Packages.props and a lockfile. In research it is the same idea applied to a data pipeline: pinned collector version, pinned resampler version, pinned descriptor parameters. A result that depends on an unpinned resampler is a result about the resampler.

Habit three: prefer boring, observable systems

Profiling taught me that a system you can see into beats a system that is theoretically faster. The same is true of a model. A descriptor whose components I can plot and reason about individually beats an embedding that scores two points higher, because I can explain the first one and only describe the second.

Habit four: write the interface first

Twenty years of interface design gets you one transferable skill: deciding what information flows where, before implementing anything. In research that means deciding what the descriptor is and what the classifier receives, before either exists. Doing it in that order has caught three design mistakes this year.

The habit I had to throw away

Ship it and move on. In software, a shipped imperfect version beats an unshipped perfect one almost every time. In research that instinct is a trap, because the imperfect version produces a number, and the number is quotable, and quoting it is how a wrong result gets a life of its own.

The replacement rule I use now: ship the code, but do not ship the claim until the claim has survived the thing designed to break it. The ablation entry is that rule being applied to my own favourite hypothesis, and the hypothesis lost by a factor of seven on effect size.

What twenty years did not teach

Statistics. Engineering gives you a strong instinct for system correctness and almost no instinct for sampling error. I had to learn the second one deliberately, and I am still worse at it than at the first.

Related reading

Writing//13 min read

Building a TIR Compiler: From Patent to Prototype

A rule graph, one intermediate representation, and three backends. What was easy, what leaked, and which abstraction I would not build again.

Writing//14 min read

Enterprise AI Agents in .NET 10: Wiring an Agent to Real Systems

What changes when an agent has to call into a system with an audit log, a permission model and a rate limit, instead of a demo endpoint.

Writing//11 min read

Python Fine-tuning with C# Inference: A Dual-Track Pipeline

Fine-tune where the ecosystem is, serve where the process already runs, and put a diff between the two so they cannot silently drift.

Writing//10 min read

Avalonia + AI Agent: A Cross-Platform Quant GUI

A desktop workbench that puts a research capture, the derived descriptors and an agent that can query them in one window.

Cite this entry

Copy the block you need.

BibTeX
@misc{huang202620yearsofcwhatengi,
  author  = {Mr Huang},
  title   = {20 Years of C#: What Engineering Taught Me About Research},
  year    = {2026},
  url     = {https://selfevo.dev/en/blog/personal/twenty-years-of-csharp},
  note    = {selfevo, blog}
}
RIS
TY  - GEN
AU  - Mr Huang
TI  - 20 Years of C#: What Engineering Taught Me About Research
PY  - 2026
UR  - https://selfevo.dev/en/blog/personal/twenty-years-of-csharp
PB  - selfevo
ER  - 
APA
Mr Huang (2026). 20 Years of C#: What Engineering Taught Me About Research. selfevo. https://selfevo.dev/en/blog/personal/twenty-years-of-csharp