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…

BlackDoc, A Jekyll Theme

I recently added a new section in my website to publish my code cheatsheets. I added this new section for my own use as a quick reference to easily find the syntax and basic usage of language or software that I use for my projects. While working on it, I…

Replacing RVM with rbenv in OS X

For several years , I’ve been using RVM to manage and install different versions of Ruby and gemsets on my system. For anyone using Ruby, it’s an essential tool in making development much easier. It helped me greatly in managing different versions of Ruby and different gemsets to make…

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…