Sortable and expandable enums

Have you ever faced the problem that extending enum type by new values may cause unpredicted behavior of the application? I recently have. As the solution for this problem I figure out how to design enum values so they can be easily sortable and easily expandable in future, causing no side effect.

By Mirek on (tags: enums, categories: code)

jQuery deferred

The Deferred object has been in jQuery since version 1.5 but I haven’t had the chance to get to know it until recently – turns out that it’s rather handy to have in your toolset.

By on (tags: jQuery, categories: web)

MVC parameter binding

Here’s a piece of information that will hopefully save you the time I spent on trying to figure it out… asp.net mvc parameter binding is localizable ONLY in the case of POST form action.

By on (tags: mvc, categories: code)

Error connecting to localdb after .mdf and .ldf files are deleted.

Localdb database is very flexible and comfortable to use. Although its purpose is rather to serve a development database storage, its also possible to use it in a production. Unfortunately using it in, for instance, Click-Once deployed application generates some strange problems. One of those mystery problems I faced recently.

By Mirek on (tags: localdb, categories: infrastructure)

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.

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

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).

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.

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