Category Archives: Development

Software development issues and solutions

Embedding custom Cocoa 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 , , , , , , , | Leave a 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 programmers I’ve ever worked with (he has just started to blog – good luck Zoli!), mentions that there is … 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

Swagger error 500 when you have a Get without arguments in ASP .NET Core

In an ASP .NET Core project where Swagger was configured using Swashbuckle.AspNetCore package to automatically expose endpoint documentation, I had seen this strange behavior regarding HttpGet methods in controller classes: With a Get method that required an argument, Swagger UI (documentation) … Continue reading

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

Swift events

Swift does not have built-in .NET-like events. (I admit, I was used to have them in C#, although implementing the weak pattern in .NET was not the easiest job either.) Instead, in Swift there are two common patterns that developers (and even Apple) … Continue reading

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