Making NotifyPropertyChanged refactorable.

Common problem when using INotifyPropertyChanged interface is that the PropertyChangedEventHandler event accept a string property name as a parameter. That cause a possible problem when we want to refactor the property and forget to update the provided property’s name.

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

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)