Blog Archives

ES6 / JS2015 : Rest and Spread operators

The Rest and Spread operators added in ES6 / JS2015 drastically improve the ability to deal with unknown numbers of function parameters, and array and hash manipulation.

Tagged with: ,
Posted in JavaScript, Programming

Building Test Fixtures to Clean up Mocha / Jasmine Tests

One of the problems with unit testing complex software is that the tests often become as complicated as the system under test. This eventually leads to bloated test code that is hard to read and maintain, and is usually littered

Tagged with: , , ,
Posted in JavaScript, Programming

Dealing with the deprecation of peerDependencies in NPM 3

The peerDependencies configuration was originally designed to address the problem of NPM packages that were ‘plugins’ for other frameworks. The original problem is discussed more in-depth here on the NPM blog. For example, the grunt-contrib-jasmine package requires that the project using

Tagged with: , , ,
Posted in JavaScript, Programming

Using Deferreds With the Cordova File API

Reading and writing to files with the Cordova File API can be difficult and messy due to heavy use of nested callback functions. We can make a convenient wrapper around this API and use jQuery deferreds to clean up our code.

Tagged with: , ,
Posted in JavaScript, Mobile, Programming

Disable Editing for a Kendo UI Grid Column

One of the oddities of the Kendo UI Grid is that the ability to edit a column is actually controlled by the backing DataSource’s Model, not the Grid itself. But what happens if we want to programmatically decide if a column is editable, or use the same DataSource in multiple Grids? Learn how to use a custom editor to move the control into the Grid.

Tagged with: ,
Posted in KendoUI, Programming

Adding / Removing CSS Classes with a Custom Kendo MVVM Binder

Back in April of 2013 I wrote a post for the official Kendo UI Blog that showed a way to bind complex types in a custom Kendo MVVM binder. The example custom binder would add or remove CSS classes from an

Tagged with: ,
Posted in JavaScript, KendoUI, Programming

Unit testing Kendo UI DataSources with Jasmine and Mockjax

Are you struggling to find a way to unit test your Kendo UI code because you have a pesky DataSource in there, and it keeps trying to fetch data from a server? Has that been your excuse for not testing

Tagged with: , , , ,
Posted in JavaScript, KendoUI, Programming

CodingWithSpike is Jeff Valore. A professional software engineer, focused on JavaScript, Web Development, C# and the Microsoft stack. Jeff is currently a Software Engineer at Virtual Hold Technologies.


I am also a Pluralsight author. Check out my courses!