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 eidias 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… mvc parameter binding is localizable ONLY in the case of POST form action.

By eidias 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)