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.

jquery

Array in javascript

Technically, array in javascript is not really array in the context of other language like c#, it is more like a dictionary, the index is actually used as a key of an entry in...
Follow the thread
javascript

supplant function

var template = '<table border="{border}">' + '<tr><th>Last</th><td>{last}</td></tr>' + '<tr><th>First</th><td>{first}</td></tr>' + '</table>';
Follow the thread
javascript

number, string , boolean conversion

var n = 1; var s = "" + n; //number to string //or String(n); // n = +s; //string to number // n = Number(s); //
Follow the thread
javascript

javascript split string into array by space

s.split(/\s+/);
Follow the thread
jquery

jQuery queue and deque

You queue a serial of function, then run the function in a serial. var area = document.getElementById("area");
Follow the thread