Ego·Sep 4Cherry-Pick Does Not Copy a Commit. It Replays a Decision.Let me tell you something that took me longer than I expected to fully understand.
Ego·Aug 28I Clicked a Button. The Browser Saw a Tree: Event BubblingWhen I click a button, I see one small action. My pointer lands on the button, I press, I release, and the button responds. The browser…
Ego·Aug 25JavaScript Gets Fast by Guessing. Then Starts Over When It Guesses Wrong.To ensure the fastest performance, JS engines use all kinds of tricks (like JITs, which lazy compile and even hot re-compile.....
Ego·Aug 14The Fight Nobody Talks About: How Promises Almost Lost Before They WonIn the early days of the Promise debate, the opposition did not come from people who did not understand the idea.
Ego·Aug 13TC39 Didn’t Build Promises. The Community Did. Then Forced It Into the Language.In the early 2000s, the JavaScript community agreed on almost nothing.A response icon1A response icon1
Ego·Aug 12You Have Never Written Async JavaScript. The Browser Did It For You.One sentence stopped me cold while reading Kyle Simpson’s You Don’t Know JS.
Ego·Aug 4For a string, .length counts characters. For an array, it counts elementsA response icon1A response icon1
Ego·Jul 15What a Function Actually Is, Because Nobody Explained It at the Engineering LevelMost people learn what a function does without ever stopping to understand what a function actually is. That gap is small until it is not…
Ego·Jun 24innerHTML vs textContent: The Difference That Could Get Your Users HackedYou have probably used both without thinking twice. You needed to put something on the page, you picked one, it worked, you moved on. Most…