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

Best practice to develop jQuery plugin

Create a private scope for $ Attach plugin to $.fn alias Add implicit iteration Enable chaining Add default options Add custom options global custom options <div id="counter1"> </div> <div id="counter2"> </div> <script> (function($) {...
Follow the thread
jquery

javascript reflection in jQuery

String: typeof object === "string" Number: typeof object === "number" Boolean: typeof object === "boolean" Object: typeof object === "object" Function: jQuery.isFunction(object) Array: jQuery.isArray(object) Element: object.nodeType null: object === null undefined: typeof variable ===...
Follow the thread
javascript

it must be "new"ed.

The following is constructor which prevent not using "new" keyword
Follow the thread
javascript

javascript scope

In JavaScript, {blocks} do not have scope.
Follow the thread
javascript

object literal

var myObject = { name: "Jack B. Nimble", 'goto': 'Jail', grade: 'A', level: 3, "3": "three" }; alert(myObject.name); alert(myObject["name"]); alert(myObject["goto"]); alert(myObject.goto); //ok alert(myObject["3"]); //alert(myObject.3); //error
Follow the thread