Category Archives: Development

Software development issues and solutions

access_token unavailable?

This call returns null for you (so your app cannot use Microsoft Graph APIs)? await HttpContext.GetTokenAsync(“access_token”); … and you’ve tried already most of the things found on StackOverflow? options.ResponseType = OpenIdConnectResponseType.IdTokenToken; options.SaveTokens = true; Maybe you’ve just missed to check … Continue reading

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

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

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