bryce johnson

Staging files with git quickly and precisely in interactive mode

I used to think there were only two ways to stage files with git prior to commiting them-- all at once, or one at a time. Until I found interactive mode.

est read time: 3 min Read more

Yes, you can painlessly set a click event on a .swf file

No, you don't have to touch ActionScript or manipulate object params in the DOM if you don't want to. Spoiler alert, mousedown.

est read time: 1 min Read more

How to display a fixed element only while the user is scrolling

Certain navigation elements are only useful to users when they're looking for new content. The following is a simple tutorial for making an element fade in as the user scrolls and fadeout as they pause to read.

est read time: 3 min Read more

Why is 'e' passed as a parameter in some JavaScript functions?

The answer is simple, but 'e' confused me for a while. Here's a practical explanation, along with a few code samples and resources for further reading.

est read time: 6 min Read more

Tips for wrapping your head around prototypal inheritance

Prototypal inheritance is tricky, but any serious JavaScript developer needs to know it inside and out. Here's a pretty diverse set of resources that helped me learn the basics.

est read time: 4 min Read more

Don't start learning TypeScript with the spec

Typescript isn't very well documented yet, but the official spec isn't all we've got. Here's where I'd recommend you get started.

est read time: 3 min Read more