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.
Entity Framework
Define entity from "view"
When you have Entity that mapping to more than one table in a database. You probably have options to do the mapping. The first option is defined import all the tables into the StorageModels,...
Follow the thread
Entity Framework
supporting state management for poco object in object context
var entry = context.ObjectStateManager.GetObjectStateEntry(poco); For the Entity Framework to create the change-tracking proxies for your POCO classes, the following conditions must be met, 1. The class must be public, non-abstract, and non-sealed. 2. The...
Follow the thread
javascript
Functional aspect of c#
Two generic delegate in c#, makes c# look more like a functional language, they are Action<T>, Func<T1, T2, ...>. The functional feature let you easily express your algorithm, without using the traditional design pattern....
Follow the thread
javascript
Return statement in javascript
return expression;
//or
return;
If there is no expression, then the return value is undefined. Except for constructor, whose return value is this
Follow the thread
javascript
Throw error
//"throw" is not limited just throwing Error, basically, you can throw anything.
Follow the thread