How serious are you about unit tests?

We all know and love them, though not everyone (me included) likes to write them. I do unit tests as often as possible, but still need to ‘will’ myself into writing them. Don’t get me wrong, I love to have them, just not the process of writing them. I mean – init, act, assert – not something I’d call rocket science; boring most of the time. But I’ve always been amazed by people…

By on (tags: momentjs, Unit test, categories: None)

Movable rows in WPF DataGrid

DataGrid control in WPF is a rich table structured control, which is perfect for displaying any kind of data in table like format. The one think about DataGrid it always lack, is a possibility to easily change the order of rows. It is not even about drag and drop of rows and items from and into the DataGrid , but simply rearrange existing rows in DataGrid control. It this post …

By Mirek on (tags: Attached property, DataGrid, WPF, categories: code)

Web Api: custom binding with AutoMapper

In Web Api 2.0 and MVC5 you can only pass: int, bool, double etc.., TimeSpan, DateTime, Guid, decimal, and string values in URI. For any complex type having lists or other complex object within you have to pass serialized JSON/XML in the request body. But what If we want use such complex type from URI? Then read on… What is binding? Binding is a mechanism used by the Web Api to…

By Piotr on (tags: automapper, mvc, Web API, categories: code)

Why should we be concerned about floating point arithmetic.

This is often quite obvious that when we are developing application which operates on a real numbers we use a double data type in .net. Here you will see why you should take a special care about the floating point calculations in your software. Generally all floating point calculation problems comes from the fact that many real number does not have an exact representation in fl…

By Mirek on (tags: decimal, double, flaoating-point, categories: architecture)