Tag Archive: javascript

Sticky Sidebar in 10 Minutes

July 24, 2013 7:33 am Leave your thoughts

There had been a couple occasions where I had to create a sidebar on a website that will stay visible no matter how much the user scrolled. This is pretty easy of course if you just want to stick the sidebar to the absolute top using fixed positioning, but of... View Article

Back to Basics: Visitor Pattern Explanation with JS Example

April 13, 2013 12:39 pm 2 Comments

Visitor pattern is one of my favourite software engineering design pattern. This technique enables us to extend the functionality of an object without having to modify its class codes. In a nutshell, this patten involves one main object and many visitors objects. The main object will have the ability to... View Article

Debuggex – a New Regular Expression Debugging Tool

March 6, 2013 8:52 pm 4 Comments

Most people, beginners and professionals alike find regular expressions sometimes confusing, perhaps because developers do not really use this in their everyday development. As of the time this post was written, there were about 53000 questions in stackoverflow concerning regular expressions in some repect; surely this points out how many... View Article

Counting Associative Array Length in JavaScript

February 26, 2013 1:47 pm Leave your thoughts

Before we look at the code snippets, yes there is no such thing as associative array in JavaScript, they are all objects. But really, a lot of people search for “how do we ¬†get¬†JavaScript¬†associative array length?” so I might as well publish this short post. So say we have an... View Article