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

Event Object, this, stopbuble, canceldefalt,

<p>The tricky part of the event object, however, is that Internet Explorer’s implementation is different from the W3C’s specification. Internet Explorer has a single global event object (which can be reliably found in the...
Follow the thread
javascript

Static Method or Singleton

<p>You don't need a "new" operation to create object to use the method.</p>
Follow the thread
javascript

Priviate, Privileged, Public memeber

<p>Here is some example code. For detailed see <a href="http://javascript.crockford.com/private.html">this</a></p>
Follow the thread
javascript

Context

<p> The way context works is through the this variable. The this variable will always refer to the objet that the code is currently inside of. Remember that global objects will actually properties of...
Follow the thread
javascript

Closure

<p> Closures are means through which inner functions can refer to the variables present in their outer enclosing function after their parent functions have already terminated. </p>
Follow the thread