Skip to content

Blog

Partial Interfaces in C# - They Exist and There Is a Use Case for Them

Partial classes are a great way to keep (automatically) generated code away from manually written one. All you need to do is to use the partial keyword in front of your class definition and the compiler will combine those partial classes to one single class.

At work, we currently try to figure out a way that would offer us the same flexibility but for interfaces. We have generated classes and can generate an interface for their methods, but we want to be able to extend the functionality with partial classes for the more complex cases. How can we get those methods in the (manually written) partial class in the same interface, without risking those changes to be overwritten with the next run of the generator?

The Most Undervalued Refactoring: Slide Statements

When we refactor our code, we want to make it better. Not just a tiny bit better, a lot better. Therefore, we look at refactorings that change our code in big steps, like extract method or extract class. However, tiny little risk-free steps can bring us to insights that we miss otherwise. Sliding lines of code around is such a tiny little step and often overlooked. What could possibly be gained if a single line of code is moved to another place in the same method? As it turns out, a lot!

How to Force a Group Policy Update on Windows

Group Policy is a feature of the Windows operating system that lets you define company-wide rules that are applied to all accounts and machines in an organisation. For example, your company can use a ruleset in a Group Policy Object (GPO) to prevent you from accepting third-party cookies in your browser or set the location of your home directory to somewhere else than C:\Users\yourname. When everything works as it should, you do not need to know anything about them. However, when things go wrong you better know at least the two commands I explain in this post.

3 Great Resources to Start with Docker (& .Net)

Popular technologies come with an enormous amount of "promotional" material. Docker is no exception to this rule: you find an endless stream of things to read, to watch and to listen to about Docker and containers. With only a limited amount of time at your hand, where should you spend it?

A few weeks ago, I was facing the same problem. I found many things that were not so useful, and I spent far too much time on them. However, at the same time I found the 3 resources I like to share with you today. I hope they can be of great use for you too. I am still new to the topic and appreciate if you post your favourite books, videos and tutorials as a comment to this post.

Different Styles for Examples in BDD

Behavior-driven development (short BDD) is all about examples. They are used to explain what should happen when certain events occur and what exactly the meaning of a certain requirement is. So far all is simple and straight-forward. The challenges come with writing those examples. There are different ways to express the same ideas and not every style works with every audience.

Where Are the Windows Lock Screen Images Stored?

Today's post is not about software development. I like interesting pictures and the Spotlight images used in the lock screen of Windows 10 are often so interesting that I like to keep them for longer. Those images are stored on your computer, you only need to find them - but where?

How NeverSSL Can Help You to Connect to a WiFi Network

Most web sites now use SSL. While this a great increase of security, there is one situation in which this is a bad thing: Connecting to a WiFi network that tries to add a login screen into the website you requested. This is not possible and without that login (and accepting the terms of service) you do not get an internet connection. What can you do when you travel abroad and need to circumvent this protection?

What Exactly Do You Mean with 10x Developers?

Over the last few days there was a big discussion on Twitter about 10x developers. Shekhar Kirani claimed many things about what 10x developers do and how one shout accept their oddities because they are so much better than the other developers and that they single-handedly will solve all problems. If you did not already have read any of those ideas, you can find them here:

Tweet: 10x engineers Founders if you ever come across this rare breed of engineers, grab them. If you have a 10x engineer as part of your first few engineers, you increase the odds of your startup success significantly. OK, here is a tough question. How do you spot a 10x engineer? — Shekhar Kirani (@skirani)