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.
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
javascript
Javascript Inheritance
In the world of javascript, everything is object. There is no class. There are two kind of object, one can not create object, let's call it non-constructor object, and one can create object constructor...
Follow the thread