TIL capitalising letters with regex
Fixing a code analysis auto-fix which made acronyms less clear

Search for a command to run...
Series
Short articles containing specific things that I learnt one day.
Fixing a code analysis auto-fix which made acronyms less clear

I was recently working with an EF Core entity which contained a C# Point property representing a geolocation. This was stored in a single column in a SQL Server database. (I think this uses NetTopolog

I knew that typescript supports a type being a specific string, rather than the string type, so (for example) a function parameter can only receive the string “foo” and not a different string. Today I learnt that this can be done by using the as cons...

I recently hit an interesting gotcha with some code in a C# codebase i was working with. It baffled me because I didn’t understand how this could compile. MyClass.Foo has a getter but no setter, yet an instantiated MyClass can have the Foo property s...

Summary I was editing a run configuration in Rider and needed to add several environment variables to it. There’s a button in the dialogue to paste them in, but no guidance regarding the format of the data, and no feedback if you paste the wrong form...

Today I learnt that you can right–click on any project or directory within the Solution panel, and under the Git menu there is the option to Compare with Branch or Tag (or a separate option to Compare with Revision). This allows you to easily find al...
