
2012, a year in review The problem with Assert.Different projects require different tools. If you want to load in third party libraries it really doesn’t work too nicely, you end up with any type declarations around which really isn’t helpful. The biggest problem I see is the module system, it’s really shit if you don’t do exactly as Microsoft does, and here in lies the problem. I’d like to try it on a much bigger project, particularly something in Visual Studio to see how well that goes, especially by having things like intellisense working. So with all that considered what’s my thoughts so far? I actually do like it, particularly the way the compiler can catch some stupid mistakes.
#Sublime text typescript code

You can use the AMD support but it forces you to use RequireJS (or CurlJS or any other loader). If you make it a public module it assumes there is a public “exports” object to attach to which is fine in Node.js but sucks in the browser! I had to have a shitty implementation to get it working that assumes in the browser there is the exports object. If you want to go with CommonJS the internal modules they generate create a global variable to store your object in, but that won’t work in Node.js as the variable isn’t exported.

Even though I’m not debugging the TypeScript (since it’s run as the compiled JavaScript through Node.js I don’t have source map debugging) the JavaScript looks close enough to my original code that it’s pretty obvious as to where I’m at

This is written primarily as a Node.js package but I also want it to work in the browser.I used Sublime Text 2 as my editor, not Visual Studio.

I just want to clarify a few things about how I did this project: Keep in mind this is only a small library so it’s not exactly extensive, but I feel it’s a good start. Well I decided to do this, I wrote a small library called mathy and I wanted to share some of my thoughts from having made something with it. This was the same approach which I took with CoffeeScript, you don’t really know something until you’ve made something with it (and for the record I wasn’t particularly fussed by CoffeeScript). I’ve been doing JavaScript development for a while now, I know many of the ins and outs of JavaScript development and I’ve never seen any problem with the syntax or the lack of type system.īut like a good skeptic I wanted to reserve my opinion until I had a chance to actually use it. When TypeScript was announced I was pretty skeptical of it. That it is over 3 years old, so the content in here may not be accurate. Hey, thanks for the interest in this post, but just letting you know
