Category Archives: Development

Software development issues and solutions

Safe Swift array using Dictionary

Ever wanted to get array elements by index in a safe way, i.e. to retrieve nil in case of index out of bounds rather than having the app crashed? You might have reached into solutions that involved collection extensions like … Continue reading

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

SHA*Managed + FIPS = hate ūüíĒ

If you write .NET software that cryptographically validates signatures, e.g. you verify a customer’s license at runtime, be aware of issues when the check runs on US government-certified¬†FIPS-enabled computers. Chances are that you run Sha256Managed algorithm for computing a hash … Continue reading

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

Funny one – but it doesn’t crash

Would you expect this SwiftUI code to crash or otherwise fail to run? struct ContentView: View { var body: some View { NavigationView { NavigationLink(destination: ContentView()) { Text(“Show another”) }.navigationBarTitle(“Recursive navigation”) } } } Nope, body property for the new … Continue reading

Posted in SwiftUI | Tagged , | Leave a comment

Small SwiftUI annoyances

Some (maybe minor) things that I’ve observed while learning SwiftUI and doing some hands on testing: When you present a set of unrelated items in a Picker (i.e. without ForEach) or a set of random tab items in a TabView¬†(in … Continue reading

Posted in SwiftUI | Tagged | Leave a comment

Books do make a difference

You can start coding with any programming language or on top of any framework either with or without reading tech books on those topics. But depending on the selection, your dev experience might vary so much: Go directly hands on¬†with … Continue reading

Posted in Development | Tagged , | Leave a comment

Waterfallish isn’t [always] foolish!

Your first goal is an MVP – minimum viable product [not Microsoft’s most valuable professional.] You define a few features and envision a few screens. Sure, without going into any details. And you go with scrum from the beginning. You’re … Continue reading

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

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