Thread Safe Lazy Initialization Using C# Notes
Sometimes it makes sense to lazily initialize something in an application. In the case of an application internal cache waiting until the first access of data to prime the cache could improve start...
Sometimes it makes sense to lazily initialize something in an application. In the case of an application internal cache waiting until the first access of data to prime the cache could improve start...
.NET now has a dotnet command line interface (CLI). Commands like dotnet build and dotnet test can be ran directly from the command line. If you’re working with private NuGet packages, that is pac...
When authoring tests using Visual Studio 2019 you may find yourself running tests continually. Whether you’re running tests on a fresh clone to make sure tooling is working or running them while ma...
BenchmarkDotNet is a tool for benchmarking .NET applications. Azure Functions is a serverless web application offering. You can put these together to benchmark your Azure Functions applications. S...
When creating web applications it’s common to create links. Sometimes, links contain query string parameters. Google uses the ?q= query string parameter for search queries. An issue can arise when ...
Sometimes when writing .NET libraries we want to support .NET Full Framework, as well as modern .NET. In many cases the functionality is the same, but sometimes it is different. For the cases wher...
The .NET CLI enables quickly scaffolding a new library. Here’s a quickstart of commands to use, substituting My.Sample.Project for your own new project: dotnet new --update-apply mkdir My.Sample.P...
Travis CI now includes support for Windows builds. It doesn’t have SQL Server LocalDB installed by default currently, but it’s easy to install. Here’s an example Travis CI configuration that instal...
async / await in JavaScript are syntactic sugar for Promises. Since it’s syntactic sugar, they can be used interchangeably! Here’s an example: class TestClass { getPromiseValue() { return ...
How would you like to go from this: to this: Add the following to your settings, accessible by File → Preferences → Settings. { "editor.codeLens": false, "editor.minimap.enabled": fa...