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

new this

The Animal.init is interesting. "this" refer to Animal function, which can be newed. It shows that function is alsow object, some object can be newed. some can not be newed function Animal() { };...
Follow the thread
javascript

A better javascript constructor, factory

What is wrong with the following code?
Follow the thread
javascript

Closure in javascript

I have read a book "Pro JavaScript Techniques", inside it define closure as follow.
Follow the thread
field note

Dyamically adding function to how hierarchy

We can add functionality to whole hierarchy by changing the prototype, for example.
Follow the thread
jquery

In javascript, everything is what?

When I learned c# long ago, I was told everything in .net is object. I used javascript long before I learned c#. But I have never asked myself this question. Now I ask myself...
Follow the thread