Web Development

Building blocks of the the Internet

Graphic of a code symbol set against a green background

Fixed Headers With hash Links

I was working on a site today that had several links in which the href attribute references an id or hash value on another page. The site has a fixed header, so I needed to way to offset the element {…}

Posted by: John Dugan
Graphic of a code symbol set against a green background

Four Rules to Define this in JavaScript

Understanding how this works in JavaScript is fairly simple. Knowing what this points to however… that is much more difficult. Scope and context become important concepts to understand. Knowing exactly what this points to and why within each function/method in {…}

Posted by: John Dugan
Graphic of a code symbol set against a green background

Demystifying Debounce in JavaScript

There are several situations in JavaScript where you want a function that is bound to an event to fire only once after a specific amount of time has passed. Functions bound to the resize and scroll events are the typical {…}

Posted by: John Dugan

Accessing WAMP from a Virtual Machine

With all modern browsers now embracing automatic upgrades, it won’t be much longer that you have to worry about sites being compatible with old versions of Internet Explorer. However, a significant portion of site owners will continue to support old {…}

Posted by: John Dugan
Graphic of a code symbol set against a green background

Hoisting in JavaScript

Hoisting is one of the more confusing aspects of JavaScript. The concept of hoisting was created by developers to explain what happens during the compilation phase when variables and function declarations are moved — or hoisted — to the top {…}

Posted by: John Dugan

What is the PATH Variable in Windows?

I remember the first time I encountered a solution that went something like: “All you need to do is add it to your PATH variable.” Huh? What is a PATH variable? The PATH variable is just that, a variable. More {…}

Posted by: John Dugan