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 notebook

Working notes / 2026

Recently mapped

Architecture, reactivity, and the hidden relationships that shape frontend systems.

javascript

memoried function

Function.prototype.memorized = function(key) { this._values = this._values || {};
Follow the thread
javascript

curry function

Function.method('curry', function() { //arguments can not be passed in to closure function //var l = arguments.length; //var args = []; //for (var i = 0; i < l; i++) { // args[i] = arguments[i];...
Follow the thread
javascript

Does it matter for an object to know its constructor?

We all knows that javascript inherit the functionality from its constructor. It is important to understand the concept every object has a secret link to constructor's prototype. How about constructor? Does a object know...
Follow the thread
c#

4 Equals, Reference Type, Value Type

The very fundamental design in .net clr is that type system is classified into two type, reference type and value type. This design decision has profound implication on the .net. One examples is to...
Follow the thread
Linq

IEnumberable, IQueryable , Lambda expression - part2

I have seen such following piece of code written by a developer from a client. interface IContactRepository { IEnumberable<contact> GetSomeContacts(); }
Follow the thread