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.
xslt
current()
The function returns a node set that has the current node as its only member. For an outermost expression, an expression not occurring within another expression, the current node is always the same as...
Follow the thread
asp.net ajax
Dynamically adding control which can do async postback in UpdatePanel
Precondition, The control needs to have Id, if not the ajax clientside script can not handle it. Then see the following code.
Follow the thread
javascript
defer javascript
The HTML 4 standard defines an attribute of the
Follow the thread
javascript
generate script tag
<pre data-sub="prettyprint:_">
document.write("<script>");
document.write("document.write('<h2>This is the quoted script</h2>')");
document.write("</" + "script>");
//document.write("</script>"); this does not work
//but you can use document.write("<\/script>");
</pre>
Follow the thread
javascript
object's member
<p>Sometime, a object's member comes from it's own definition, if it is not defined, will ask check its prototype's definition, same thing apply to the prototype, if prototype object has that definition, that is...
Follow the thread