Tag: JavaScript

JavaScript Strict Mode

If you’ve taken a look at any of the libraries, plugins, or frameworks you’ve been using you’ve likely noticed ‘use strict’ somewhere near the top of many files. I must have glazed over it a dozen times before bothering to find out just what the heck it was doing there and what it did. I […]

Posted: May 03, 2013

A fresh look at JavaScript Mixins

You likely heard about mixins first from your CSS preprocessor, but this article takes some time to outline the application to JavaScript. One of the things I like most about JavaScript is the additional challenge of making your code as lean as possible. While minifiers and other compression techniques help that on a machine level, […]

Posted: May 03, 2013

Become a Javascript Console Power-User

I use console all the time but I honestly learned just about everything this video has to offer. It’s a bit older so I can only imagine what has been implemented on top of these techniques since then. Great stuff.

Posted: May 03, 2013

The JavaScript Comma Operator

Operator precedence is something that pretty much has me paranoid when programming. I know for a fact that over the years it’s resulted in way too many parenthesis “just to be sure” and has been the cause of a number of head scratching bugs during development. It’s no surprise that JavaScript throws me for another […]

Posted: May 03, 2013

The JavaScript arguments object…and beyond

I’m not ashamed to admit that the arguments object is something I learned about just now. I’m not sure how unique it is to JavaScript, but essentially you’re automagically given an object containing all of the arguments passed to the current function. That’s just the start though… it’s a pretty quirky thing to play around […]

Posted: May 03, 2013

Exploring JavaScript for-in loops

I recall Googling for ways to loop through JavaScript objects countless times as I was becoming more familiar with the language. It’s one of those things that is a bit confusing at first, but at the same time illustrates the uniqueness of JavaScript itself. This fantastic article walks you through for-in loops in such a […]

Posted: May 03, 2013

JavaScript Patterns

This is going to be a stop on my self-implemented JavaScript cleanse: ![http://shichuan.github.io/javascript-patterns/img/js-patterns.png](JavaScript Patterns) It’s a collection of both patterns and antipatterns we continually find in JavaScript. Checking these out will give me insight into approaches I’ve never tried before in addition to corrections to weak points in my implementation approaches I’ve accepted as “proper”.

Posted: April 09, 2013

Learning JavaScript – my experience and advice

Enough is enough. I’ve said for over a year that I was going to really learn Backbone.js and if I’m honest the only thing I’ve written with it is an abstraction of the sweetness that shipped with WordPress 3.5 Media workflow for Attachments. For me, there’s no better time to start learning Backbone as it’s […]

Posted: April 09, 2013

JavaScript: Function Invocation Patterns

As I reflect on that habits I picked up and hopefully left behind along the years, I realize that if I was anything it was inconsistent. I see those traits sneaking in my work even today, especially if I’m excited about something and just want to see it work. I think that might be a […]

Posted: January 28, 2013

Arrays in JavaScript

You thought you knew about JavaScript arrays, right? Me too.

Posted: January 24, 2013