February 16, 2024

Never before did I write so much unnecessary boilerplate code as with WPF

Never before did I write so much unnecessary boilerplate code as with WPF

This is what blind, fanatical following of a dogma puts you through: tedious workarounds.

Enter TreeView control. Microsoft sabotaged it by replacing SelectedItem with SelectedValue whenever the control is databound (which is like 100% of the cases). As a result, we ourselves are forced to implement parent-child relationships in our hierarchical models.

Enter Newtonsoft JSON package that is used in like 100% cases of serialization these days. It throws:

Newtonsoft.Json.JsonSerializationException:
'Self referencing loop detected for property 'Parent'
with type 'Models.S'. Path '[0].T[0]'.'

whenever it is asked to serialize such parent-child hierarchy.

We are SOL, and Microsoft laughs all the way to the bank while we are hard at work on workarounds, writing boilerplate code that would have been unnecessary, had they only kept `SelectedItem` being `SelectedItem`.

Allow me to ask an important question: why do we remain silent?

Why does no one, literally no one, condemn Microsoft for releasing a half-baked, half-assed, tortorously painful to use framework that has absolutely zero support in terms of bugfixing and feature improvement?

They buggered TreeView, threw away NumericUpDown, neglected to add comprehensive InteliSense to XAML editor, neglected XAML designer that is simply impossible to operate with a mouse or to comprehend, and everybody silently jumped on WPF like a fat kid on a twinkie. Dockable toolbars anyone? Aren't they what WPF was advertised for? We were promised a framework that would allow us to simply and easily create MSOffice-like apps, no? NO! You will be writing tons of boilerplate code if you want that. Screw you, Benny!

What's wrong with you, developers? Are you petrified by the fear of Microsoft? Does each of you cherish a hope to work for Microsoft one day and that is why you keep your mouths shut? Okay, I can probably understand the developers but why are business administrators and owners silent about the huge waste of time and $$$ that WPF requires?

What's wrong with you, people?

Posted by: LinuxLies at 12:13 PM | No Comments | Add Comment
Post contains 346 words, total size 2 kb.




What colour is a green orange?




15kb generated in CPU 0.011, elapsed 0.0491 seconds.
35 queries taking 0.0427 seconds, 127 records returned.
Powered by Minx 1.1.6c-pink.