Interesting article about Microservices

I stumbled across an interesting article about design in the context of microservices. The great thing about this piece is that they are trying to formalize design principles for microservices in a way akin to how has been done for general OOD principles in the past.

Read More

Project Renamer

Okay, this is going to be a bit of a plug, but…

Over the years, it has always annoyed me that Visual Studio doesn’t properly support renaming projects. Properly as in: also renaming the directory, the project file, updating the references and keeping the git history intact.

Read More

Tuple syntax for multiple assignments

This is a short one. I just noticed how neat tuple syntax can be for multiple assignments:

1
var (oldReference, newReference) = (searchPattern(oldName), searchPattern(newName));

Read More

CosmosDB and Caching

Iff you ever work with CosmosDb and are concerned about high volume accesses:

CosmosDb is fast, no doubt, but because it’s never hosted in the same network as your app-services, Azure functions etc., there is still significant network lag. Because of this, it makes a huge difference to put a redis instance in front.

Read More

Merging a specific directory only from one branch to another

Sometimes, you find yourself in the situation of needing just one directory from one branch in another one.

Depending on what you need and your circumstances, there are multiple ways to achieve that.

Read More

Anonymous types and FluentAssertions

Say you are testing the return value of a method returning an interface:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
public class UnderTest
{
IInfo GetInfo()
{
// ...
}
}


interface IInfo
{
string Text { get; };
int Number { get; }
}

Read More

Multiple Visual Studio environments on one machine

I just found out there is a way to have multiple VS environments (without actually having side-by-side installs).

From a prompt, run

1
devenv /RootSuffix MyEnvironment

Read More

Azure Functions and the CosmosDB change feed

If you ever work with an Azure Function that is connected to/triggered by a CosmosDb change feed:

Whenever you want to reset the CosmosDB container/collection during development, you need to stop the function first, then reset the container, then start it.

Read More

Hi there

For a while, I’ve been posting thoughts, trick, tools etc. I found relevant or interesting to a Telegram group of software developers.

But this has limitations and also doesn’t reach everybody who might find it useful. So I’ve decided to use my github profile page and turn this into good old-fashioned blog.

Read More