Category Archives: Development

Software development issues and solutions

Invariant string interpolation

I’m sure you like C# string interpolation support ($”{…}”): var start = DateTime.Now; var end = start.AddDays(7); string weekIntervalText = $”{start}-{end}”; But you also know that this uses the current thread’s culture to format the string, so you think “Oh, … Continue reading

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

Attached properties and the WPF DataGrid

WPF attached properties. They look like such a difficult topic. But you only need to see a single example in action to understand their true potential: as long as your objects inherit from DependencyObject you can add as many extra … Continue reading

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

Embedding custom Cocoa macOS views with xibs into frameworks

Ever thought of defining a custom Cocoa class (inheriting from NSView or a descendant), associate it with a xib to be able to define its UI with xCode designer, and then put everything into a framework that you could reuse … Continue reading

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

“Local” git repo remote on iCloud

Disappointingly, Apple doesn’t (yet?) have cloud based git repo hosting (and it seems even xCode server which previously could have allowed teams to host repos on macOS Server doesn’t offer this anymore, either – maybe awaiting for code integration features … Continue reading

Posted in iOS, macOS, Swift | Tagged , , , , , , , | 1 Comment

Afraid of AI?

OK (or not OK). But (anyway) you shouldn’t be afraid of AI programming. This post, written by one of the best young programmers I’ve ever worked with (he has just started to blog – good luck Zoli!), mentions that there … Continue reading

Posted in Development | Tagged , | 1 Comment

Asynchronously awaiting for Swift await

Async-await pattern that is now common in many modern programming languages (having been introduced by C# a few years ago) is unfortunately not yet available in Swift. While it was proposed for implementation, it has not (yet) been identified as a … Continue reading

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

How to write good code on first attempt

TL;DR: draw diagrams and (re-)write requirements. If a developer has an idea about a software product or feature to be designed and/or a few minutes of thoughts on how it should be developed, he or she might feel that it’s enough, … Continue reading

Posted in Development | Tagged , , , , , , , | 1 Comment