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.
field note
We don't need magic.
Today, a coworker of another team needed to read the code of my team. He found a class called MagicObject. After tracing for a while, he still couldn’t figure it out why it exists....
Follow the thread
field note
Ten good practices for writing JavaScript in 2005
<a href="http://www.bobbyvandersluis.com/articles/goodpractices.php">Ten good practices for writing JavaScript in 2005</a>
Follow the thread
field note
dbcc freeprocecache
You can use “dbcc freeprocecache” to clear up the procedure cache to ensure the compilation will take place afterwards. How ever it has its drawback, because it will delete the contents of the procedure...
Follow the thread
field note
Investigate your SQL's compilation
Following script to investigate the compiler events and corresponding counters and values of your statement
Follow the thread
field note
AJAX basic
<pre data-sub="prettyprint:_"> var xmlHttp = null; if (window.XMLHttpRequest) { // IE7, Mozilla, Safari, Opera, etc. xmlHttp = new XMLHttpRequest(); } else if (window.ActiveXObject) { try{ xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); //IE 5.x, 6 } catch(e)...
Follow the thread