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
"this" in javascript
If you don't know javascript is a functional language and you do lots of object oriented programming, the follow code must be very confusing for you.
var name = "Jerry";
Follow the thread
F#
mutable binding and ref type
We all know that in F#, once you bind a value to an identifier, that the value can not be changed. What does this means? It means the your identifier will be like a...
Follow the thread
F#
How Binding in f# is like in CLR
In c# or clr philosophy, everything is object, object is the horsepower. In f# philosophy, everything is value, function is the horsepower. However f# is implemented in CLR, I am just curious how F#...
Follow the thread
F#
Pattern matching shorthand in function definition
Pattern matching is powerful construct in F#, but sometime it is confusing to beginner, below is pattern matching shorthand in function definition. The paramter is implied in the matching pattern, essentially you can rewrite...
Follow the thread
jquery
benchmark you javascript
Here is script that is used to benchmark jQuery. // Runs a function many times without the function call overhead function benchmark(fn, times, name){ fn = fn.toString(); var s = fn.indexOf('{')+1, e = fn.lastIndexOf('}');...
Follow the thread