Author Archives: Sorin Dolha

About Sorin Dolha

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

2D virtualization

Do you need to develop a UI grid component displaying column-aligned cells for rows bound to specific items that the client would provide? Do yourself a favor and prepare for performance improvements when you design it. I mean: don’t just … Continue reading

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


As you probably guessed, yes, I’m (partially) moving to Medium. (Thanks Paul for the suggestion.) Don’t worry, I will still post some work here, but – from now on – I’ll write the stories that I consider to be the most interesting only there. Why? … Continue reading

Posted in Miscellaneous | Leave a comment

Ramping up

When you ramp up a new project, would you rather:  assume everything is black box until details are needed or dig down, trying to understand and learn as much as possible already? In my opinion, the best answer would depend on … Continue reading

Posted in Miscellaneous | Leave a comment

Programming is…

… hard because: to be (or become) a programmer, you don’t only need to know how to solve complex problems yourself, but you also need to be able to unleash your creativity and: split such resolutions into lower and lower (and recursively … Continue reading

Posted in Miscellaneous | Tagged , , | Leave a comment

Moq: how to VerifySet with an object that respects a condition

Sometimes you want to test that a service method sets up the correct object on another (singleton) service. For example, that an authentication service sets up a user object with the correct username to the app’s user context. With Moq you … Continue reading

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

Daylight may ruin your date

(No, this post doesn’t include dating advice. For such content, your best shot is probably YouTube. :-)) This is instead about Date values in Swift*. Which sometimes you might need to update by “components”. Such as by adding a specific number … Continue reading

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

Swift optionals can save the day

Although generics in Swift are somehow limited at this time, there is a nice variance-related feature available when using optionals: you can assign a non-optional to an optional variable, an array of non-optionals to an array of optionals (these two are classics), … Continue reading

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