Category Archives: Development

Software development issues and solutions

Indexing for IndexOf

Today, a short one. But it gave me some not-so-short trouble recently. Do you happen to use or inherit Collection or any of its subclasses (e.g. ObservableCollection)? Make sure you don’t call its IndexOf method too much. As indicated on … Continue reading

Posted in .NET | Tagged , , , | Leave a comment

Scrum and the city

The Scrum guides proudly state: Development Teams are cross-functional, with all the skills as a team necessary to create a product Increment; Scrum recognizes no titles for Development Team members, regardless of the work being performed by the person; Scrum … Continue reading

Posted in Development | Tagged , , , | Leave a comment

Hacking the WPF DataGrid: properly hiding rows for unwanted items

If you even need to hide some DataGridRow elements displayed in a WPF DataGrid please remember these few things – it took me some time to realize and solve them all: If you plan to just set DataGridRow.Visibility to Collapsed … Continue reading

Posted in WPF | Tagged , , , , , | Leave a comment

Don’t set NSPopupButton’s menu.items!

Since macOS 10.14 (Mojave) you can set the items of the internal NSMenu of a NSPopupButton in a Cocoa app using simple code like this: menu.items = […] But if your app also targets macOS 10.13 (High Sierra), don’t do … Continue reading

Posted in macOS | Tagged , , , , , , , , , | Leave a comment

Generically handling multi-threading exceptions in WPF

You have a WPF app and you just want to show a message whenever an exception is raised an not handled anywhere else in code. The first try is surely this: This works fine, as long as the exception isn’t … Continue reading

Posted in .NET, WPF, C# | Tagged , , , | Leave a comment

2D virtualization

Do you need to develop a UI grid component displaying column-aligned cells for rows bound to specific items that the client would provide? Do yourself a favor and prepare for performance improvements when you design it. I mean: don’t just … Continue reading

Posted in Architecture, Development, Swift | Tagged , , | Leave a comment

Moq: how to VerifySet with an object that respects a condition

Sometimes you want to test that a service method sets up the correct object on another (singleton) service. For example, that an authentication service sets up a user object with the correct username to the app’s user context. With Moq you … Continue reading

Posted in C# | Tagged , , , | Leave a comment