JavaScript

Writing Better JavaScript with ES6

ES6, or formally ECMAScript2015, is the latest version of JavaScript and has new major enhancements for a more expressive syntax and fixes to old bad parts of the language. In this post, I'll explore some of the new features that can help improve and simplify building complex applications in JavaScript.…

Better Unit Testing with Tape

Unit tests are very useful in improving the overall quality of your codebase by allowing you to test each unit of your application. A unit could be a function, component, or object that can be tested separately from the rest of your application. Having unit tests enforces you to write…

Functional Programming in JavaScript

Unlike in other popular programming languages, functions in JavaScript can be used as variables or parameters in function calls. In short, functions can also be treated as regular values as you would do with strings and numbers. This means that functions can be assigned to variables or passed as arguments…

ImgCaption: A Simple, Lightweight Image Caption jQuery Plugin

There are many image caption jQuery solutions for placing captions to images, but most of the available plugins I found don't provide the simplicity that I need and most use the alt or title tag to display text captions. I don't find these two attributes semantically correct when you need…