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.
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
i18n
CurrentCulture can not be set to Neutural Culture
var c = CultureInfo.GetCultureInfo("en");
Console.WriteLine(c.Name); //en
var c2 = CultureInfo.CreateSpecificCulture("en");
Console.WriteLine(c2); //en-US
Thread.CurrentThread.CurrentCulture = c2; //ok
//following with throw
//System.NotSupportedException: Culture 'en' is a neutral culture.
Thread.CurrentThread.CurrentCulture = c;
Follow the thread