Author Archives: Sorin Dolha

About Sorin Dolha

My passion is software development, but I also like physics.

Learning the basics of programming can and should be fun

Myself I have learned the basics of programming using GW-Basic back in early 1990s. Once I understood what programming really is – i.e. that i = i + 1 actually means incrementing value of variable i from the computer’s memory … Continue reading

Posted in Miscellaneous | Tagged , , , , , | 1 Comment

Swift selectors and number of arguments

In Swift, you can create and “perform” a #selector like below (e.g. in an iOS app) and it seems to work just fine (i.e. executes the “selected” function): class Obj1 : NSObject {     var value: String?     … Continue reading

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

Avoid extracting internal libraries

In a not-too-small software development company it’s very likely that you’ll manage multiple projects over time, with multiple teams and doing work for multiple customers. And for each platform/framework that you’d target (sometimes even cross-platform) you will probably determine that you … Continue reading

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

What to do in IT

You’ve studied computer sciences, and you’re good at it. How do you select your job? Assuming that you don’t want to be a researcher (but up to a point even if you do), and that you like software development, you can … Continue reading

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

Cherry picking through a middle branch

Let’s assume we work with git on our project. And that we have two important branches: dev – which is built and deployed automatically to a local environment; master – which is built and deployed automatically to production environment. Moreover, let’s … Continue reading

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

DataGridComboBoxColumn.ItemsSource binding issue

The code below doesn’t work as one would expect, i.e. to allow selecting one value for each item in the DataGrid using ComboBoxes in a secondary column, even if if there is an AvailableValues property in the Window container class … Continue reading

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

XAML element properties and cut-paste refactoring

As you know, to set properties for WPF objects in XAML, one uses either attributes or elements, like the Text and LayoutTransform properties of the TextBox element below, respectively: <Border> <TextBlock Text=”Hello!”> <TextBlock.LayoutTransform> <ScaleTransform ScaleY=”2″/> </TextBlock.LayoutTransform> </TextBlock> </Border> Using elements is required when … Continue reading

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