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

What does the size of a JavaScript Library say about it?

When people introduce a JavaScript library, they often mention that the size of the library is very small, like "it is small and light weight, xx K minified, in fact is about yy k...
Follow the thread
via proxy

The design principle of viaProxy

[update: the library is now in github, and the sample code discussed in this post is here] viaProxy is a client side JavaScript library that can be used to build complex, fast and fluid...
Follow the thread
F#

f# essential - part 14 - object oriented without class

JavaScript is duck type language, if you expect a object has a method, you just call object.method. It supports Polymorphism very well, but you don't need implementation inheritance, and you don't need prototype, constructor...
Follow the thread
F#

f# essential - part 13 - pattern matching over .net type

f# use unique syntax to match type like the following, let divide1 x y = try Some (x / y) with | :? System.DivideByZeroException -> printfn "Division by zero!"; None
Follow the thread
F#

f# essential - part 12 - function is not method, is not delegate, what is it anyway

As previous post discussed, f# function is not a method, because it support closure, it curry and so on, and .net method does not support these. It looks very much like a delegate (aka...
Follow the thread