Thursday, July 7, 2016

C# .NET and WPF

I recently had a terribly boring project in which I had to go through 27 pdf documents and compare copies word for word. That means reading a total of 54 documents and comparing for exact word for word copies. And no, they could not be done with pdf comparison tools, it was required that human eyes search through each document at some point.

In order not to burn out, I started a project in C#.NET and WPF on the side. What I found was that C# is one of the easiest languages there is. I was able to create classes and structures using the .NET toolset to model my data in about two hours. Then I tried to connect it to a WPF interface.

WPF is ridiculously difficult to "jump into". I found it really hard to get resources online, then half the resources said you need to use the prism library to do WPF correctly and encountered similar difficulty in finding prism examples. All the examples I found used code-behinds to bind data, which, from the Microsoft examples, are an antipattern. I really felt like there were more contradictory and dated examples of WPF and C#.NET code than there are of javascript (though I'm sure that isn't true).