1024px-Flatirons_Winter_Sunrise_edit_2

How to Clear an Array in JavaScript

Arrays are awesome! They allow you to store multiple values in a convenient, indexed set. In JavaScript, arrays can be declared literally or they can be initialized using the Array constructor function. But wait… What if you want to empty an array instead of creating one? Hmm… perhaps not as straightforward. Have no fear, there are […]

1024px-Flatirons_Winter_Sunrise_edit_2

jQuery Ajax and JSON Envelopes

This is post 3 in a series on creating a JavaScript component for handling your Ajax requests in front-end development across your enterprise. You can find all the other posts here: Post 1: From Enterprise Beginnings Post 2: Handling Errors and Loading Notifications In the last post we covered using the publish/subscribe pattern along with […]

1024px-Flatirons_Winter_Sunrise_edit_2

Replacing Common UI Icons with CSS

Let’s be honest, dealing with images on the web is kind of a pain. They’re a pain to modify, load slowly and require all sorts of progressive techniques in a responsive environment. But, unfortunately, images are here to stay; there’s no better way to capture a moment in time than with an image. However, we […]

1024px-Flatirons_Winter_Sunrise_edit_2

EdisonJS – Organized Routing for Complex Single-Page Applications

Over the past few years, “single-page applications” have steadily grown in popularity within the web development industry. As developers have grown accustomed to placing the bulk of the responsibility for rendering these “thick client” apps within the browser, new libraries that provide repeatable patterns for solving frequently encountered issues when using a client-heavy approach have […]

1024px-Flatirons_Winter_Sunrise_edit_2

How Good C# Habits can Encourage Bad JavaScript Habits: Part 3 – Function Scope, Hoisting, & Closures

This is the third post in a multi-part series covering common mistakes C# developers tend to make when they first start writing JavaScript. The first post covered the following topics: 1. Having Variables & Functions in Global Scope 2. Not Declaring Arrays & Objects Correctly The second post covered the following topics: 3. Not Understanding […]

1024px-Flatirons_Winter_Sunrise_edit_2

How Good C# Habits can Encourage Bad JavaScript Habits: Part 2 – False-y, Testing and Default Values, Comparisons, and Looping

This is the second post in a multi-part series covering common mistakes C# developers tend to make when they first start writing JavaScript. The first post covered the following topics: 1. Having Variables & Functions in Global Scope 2. Not Declaring Arrays & Objects Correctly Introduction This post continues to focus on areas where C# […]

1024px-Flatirons_Winter_Sunrise_edit_2

How Good C# Habits can Encourage Bad JavaScript Habits: Part 1

This is the first post in a multi-part series covering common mistakes C# developers tend to make when they first start learning JavaScript. Introduction Many people come to jQuery and believe that their knowledge of a previous classical language (C#, Java, etc) will help them be successful at client-side scripting. You can use your classical language […]

1024px-Flatirons_Winter_Sunrise_edit_2

Javascript Parameter Patterns with $.extend and Beyond

Enterprise developers have a tendency to misunderstand JavaScript’s function parameters. When getting started, many expect JavaScript functions to work much like the server-side languages they’re already familiar with. There can then be a fair bit of confusion when they find out things work a little differently with JavaScript. The languages generally used on the server-side of […]

1024px-Flatirons_Winter_Sunrise_edit_2

Mock Your Ajax Requests with Mockjax for Rapid Development

Most backend developers are familiar with the concepts of mocking objects or stubbing in methods for unit testing. For those not familiar with mocking, it’s the simulation of an interface or API for testing or integration development purposes. Mocking with front-end development though is still quite new. Much of the development that appendTo does focuses […]