javascript

AngularJS and TypeScript

Lately, I’ve started using AngularJS instead of Knockout. Knockout.js is very popular in the .NET world, is very easy to use, and meshes well with .NET devs used to the MVVM style of development. I highly recommend it. But, yeah, it’s fair to say that I’m…

TypeScript and Knockout: Define Computed Observables

ko.computed() in TypeScript On my second day of figuring out how to use knockout.js and TypeScript, I came upon computed observables and ran into trouble. As a point of reference, this is a simplified version of how I declared my ViewModel in pure JavaScript: var SampleViewModel = function () { var…

TypeScript not Rebuilding JavaScript File

UPDATE: While the solution I presented is fine for builds, what you really want is for the JavaScript file to be regenerated when you save the TypeScript file. The current TypeScript plug-in doesn't do this. Lucky for us, Mads Kristensen has updated the Web Essentials 2012 plug-in to support TypeScript.…

TIL: Knockout View Models with jQuery Deferreds

I’m a knockout.js beginner and I'm no JavaScript Ninja. I've got a lot of habits that are carryovers from my years of C# and I sometimes find myself trying too hard to make those habits work in JavaScript when there are better ways. I learned how to use…

A .NET Developer's Introduction to node.js - Part 1

Nearly my entire professional career has been devoted to developing on Windows platforms, specifically the .NET framework. But every developer needs to stand up and stretch once in a while and expand their body of knowledge to stay current and limber. Lately, one of the hotspots in the software scene…