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.
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
css
Using user style sheet to modify the style of a web site
I tried to modify the style by using user style sheet. But some of style just could not take effect. I seemingly forget the basic rule of css cascade. The cascade works in the...
Follow the thread
asp.net ajax
Function.createDelegate
function greet(message) {
alert(message + ", " + this.name);
}
Follow the thread
asp.net ajax
Function.createCallback
var createCallback = function(method, context) { return function() { //the arguements is passed in when the this callback //method is call //if there is parameter passed //package the parameter with the context //into an...
Follow the thread
SharePoint
Create a SharePoint Solution
SharePoint use solution file to deploy solution. There are some tools to create a solution file automatically, like stsdev. But it still important to understand how the solution deployment works
Follow the thread