Notes on software and the ideas behind it
Find the meaning
behind the code.
I’m Fred Yang. I write about software—how it works, why it behaves the way it does, and the ideas that make code easier to reason about.
Open the notebookWorking notes / 2026
Recently mapped
Architecture, reactivity, and the hidden relationships that shape frontend systems.
asp.net mvc
Custom T4 host for asp.net mvc
T4 template can be hosted by different environment. By default template is not HostSpecific. When you want to reuse a template to generate different file, you can customize the generation process by providing a...
Follow the thread
Lamda Expression
Using lambda expression to remove string expression
public class Customer
{
public string Name { get; set; }
}
Follow the thread
asp.net mvc
A dummy example of html helper
public static class HtmlHelperExt
{
public static string GetDebugInfo(this HtmlHelper html)
{
return "Hello";
}
Follow the thread
Unit Test
definition of two kinds of test
State-based testing (also called state verification)
Follow the thread
i18n
ResourceManager notes
The benefit to ResourceManager is that it can smartly load differently resource based on the current UI culture. ResourceManager basically it is used to read embedded resource or file based resource. But it is...
Follow the thread