TypeScript - a way to embrace the fuzzy world of java script.

What I always dislike in java script was the fuzziness of this language. Very often you didn’t know what type the variable is or if it was an object or a function. I always lack of some strong typing, design time rich intellisense or compile time type checking, which would minimize the possibility of making a bug in the java script code. TypeScript is a cure for all inconvenien…

By Mirek on (tags: javascript, TypeScript, categories: architecture)

angular with foreign (jQuery) promises

When using angular turns out that it’s not as straightforward when it comes to foreign libraries. I needed to use jQuery $.post instead of angulars $http.post method (to reduce the friction between angular and asp.net mvc regarding request token validation) and I came across unexpected (though understandable once you get to the core problem) behavior. Here’s the angular version…

By on (tags: angular, javascript, jQuery, categories: web)

knockout cart

I recently had an opportunity to put some new knockout knowledge into use.  Tekpub has a very nice training video on the subject, which was a great starting point, so let me show you the result. First some quick requirements: Every product has a button that adds a fixed number of items (in my case 1) to the cart There is a separate cart page The cart has a possibility to c…

By on (tags: javascript, knockout, categories: code, web)

MV* javascript libraries

You probably heard about knockout.js. Well, there are others like it.   Here are a few that I plan to look at in the nearest future: Angular – developed and maintained by google. Read some good reviews about it. Durandal – not sure how I stumbled upon that, but they do have a bold punch line – “Single page apps done right” – and just for that, it’s worth looking at Backbon…

By on (tags: javascript, categories: tools, web)

jQuery alternative – zepto.js

If for some reason you think that jQuery is ‘too much’ to use in your web app, then here’s an interesting alternative – zepto.js

Taken from their website:

I guess it’s worth giving a shot, especially if you need to create something with a small footprint.

Cheers

By on (tags: javascript, zepto, categories: tools, web)

sammy.js

Another nice javascript lib that’s handy to have in your utility belt. From the library website - sammy is “a small web framework with class”. I’m sure there’s much more to it than what I will describe here, but there’s one aspect I’d like to focus on: view switching. When building a SPA or another type of ‘front-end heavy’ app, there’s a matter of representing and switching be…

By on (tags: javascript, sammy, categories: tools, web)

CoffeeScript

There’s been a lot of fuss about coffee script in the last few months. It’s a language that compiles into pure javascript. Some people like it, some don’t. So what’s it all about? Javascript causes vigorous discussions. It’s a very specific language – it has it’s flaws but has it’s strengths as well, but most importantly, it allows you to do a lot of things generally considered…

By on (tags: coffeescript, javascript, categories: tools, web)

knockout.js

Knockout is a MVVM framework for javascript. It has been around for a while, but I never spent too much time with it until recently, when pluralsight released a free training that included knockout. My impressions – this is definitely something I could utilize in quite a few places, but it carries a pretty big startup cost, so I’d think hard before using it in a project. First,…

By on (tags: javascript, knockout, categories: tools, web)