Event aggregation

In this post I will try to present you my implementation of event aggregator, which I used in WPF MvvM application. I will also try to point out the advantages of my implementation over other found in the internet. The basic principle of event aggregator is to decouple objects from themselves, but at the same time make them still able to communicate to each other. The idea behi…

By Mirek on (tags: event aggregator, categories: code)

QUnit

Another handy javascript lib for your toolbox, but this time, for a slightly different purpose than usual – unit testing For me, javascript development has always been tied with a sense of uncertainty. I mean, you write the code, check that it works but that’s usually with strong assumptions. What if the DOM element is not there, what if a dependent script is missing. Well, wit…

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

Web sockets

Web socket is a technology developed to establish a bi-directional communication between client and server, over the web. It works on top of TCP and hopefully will render hacks like long polling obsolete. It’s supported by all modern browsers with 2 exceptions – opera mini and the default android browser (chart can be found here). Here’s a basic example how to use it along with…

By on (tags: web sockets, 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)