I am glad 2020 is over. It was the year that put an end to any hope of self-responsibility to tackle a global crisis. It did not work for COVID-19, it will not work for climate change. We need something else and I hope we find it in time.
Last week I attended the "Make Your Code More Testable" workshop by Ted M. Young (@jitterted). I was not sure if I wanted to attend yet another workshop this year as I saw the first tweet about this workshop. After I saw the recommendations by Gitte Klitgaard, Esther Derby, Kent Beck and GeePaw Hill I changed my mind, and I am happy I did.
Code katas are little exercises that help you to improve your programming skills. My favourite one is the Gilded Rose kata. It was originally created by Terry Hughes and is now maintained by Emily Bache (@emilybache).
While most katas start from scratch, the Gilded Rose kata comes with existing code that you need to modify. This code is available for more than 40 programming languages and covers most likely your favourite language.
Personal Access Tokens (PAT) for Azure DevOps have an expiration date. They can be valid for a year at most. If this expiration date comes closer, Azure DevOps sends you an email with this subject:
Azure DevOps personal access token nearing expiration
The network cables in my home are old. Some date back to the time I moved in and even the newer ones passed the five-year mark. Over the last few years, I have again and again read @SwiftOnSecurity's recommendation to replace network cables more often. Since I had no problems with my network, there was no reason for me to buy new ones.
The new .Net 5 was released a few hours ago at .Net Conf 2020. I looked forward to this release that marks the future of .Net. From now on all the new features for .Net will go to this branch while the full framework (4.8) only gets bugfixes.
I will soon move a web application to a different domain. Without any extra work this change will break the existing URLs. To prevent this from happening, I try a new approach with a small replacement application that accepts every request to the old domain name, logs its referring site and redirects the user after a few seconds to the new application.
As part of our build and deploy job in the user group project we create a backup of our Azure database before we run any data migrations. If something goes wrong, we do not lose any data and can restore our cloud database to a known good state.
It would be a great opportunity to take this backup file and restore our database to the local SQL Server on our developer machines. Unfortunately, the backup tool creates a *.bacpac file and not a *.bak. Restoring a *.bacpac file needs a few additional steps and, most importantly, a different entry point in the SQL Server Management Studio to start the restore process.