I have just come across an article by @wealthfront explaining how debouncing event handlers helps filtering double-clicks. While I like the idea, it doesn't quite cover it. The problem is rooted deeper than double click and this post will explain why that is and how to fix it.
Continue reading "Preventing Duplicate Execution"
It seems my world has become doing everything but writing Javascript. One of my rather frequent tasks these days is reviewing code. While this post is targeted at a specific project, it's the perfect little reminder everyone needs from time to time (including lazy ol' me…).
Continue reading "jQuery - The Little Things - 2"
A couple of weeks ago it seemed my daily business became sorting DOMElements. This quickly became boring enough to be investigated more thoroughly. So this post sums up everything you should know about sorting DOMElements in Javascript (… using jQuery, of course).
Continue reading "Sorting - We're Doing It Wrong"
»It works!« is a state any piece of code needs to achieve. It's the goal most developers have in order to get the job done. But sadly »It works!« is more often than not, simply insufficient. It's a state that's only true for the moment. This post explains a few problems found in your average jQuery-based code.
Continue reading "jQuery - The Little Things"
You probably know all about rolling your own plugins for jQuery. But did you know that some core jQuery functions have their own "plugin API" called "hooks"?
Continue reading "jQuery Hooks"