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.
css
Pixel in CSS
CSS2 recommended 90ppi as the reference pixel, but CSS2.1 recommends 96ppia measurement common to Windows machines and adopted by modern Macintosh browsers such as Safari. This means when I display 96 pixel in my...
Follow the thread
css
Unit in css
All length units can be expressed as either positive or negative numbers followed by a label (although some properties will accept only positive numbers). You can also use real numbersthat is, numbers with decimal...
Follow the thread
css
Make IE more css2.1 compliant
Check here
Follow the thread
clr
Nullable and ?? Operator
After reading the article, The C# ?? null coalescing operator (and using it with LINQ), I did a quick test like the following code. It seems the compiler does different thing for Nullabe type,...
Follow the thread
clr
Generic method
The following code shows some example of generic method
//the T can be inferred from the type of input parameter
public static T DoByInferType<t>(T input)
{
return default(T);
}
Follow the thread