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...
Thread Safe Lazy Initialization Using C# Notes
Troubleshooting Private NuGet Packages With dotnet CLI
.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...
Keyboard Shortcuts For Efficient Visual Studio 2019 Testing
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...
Leniently Parse Comma Separated Configuration Values Using C#
Whether you’re running .NET full framework or .NET Core sometimes you may want to read configuration values at runtime. Sometimes the value might look like "a,b,c", which some might write as "a, b,...
Using BenchmarkDotNet with Azure Functions
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...
Peas&Carrots: The Importance Of Url Encoding Query String Parameters
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 ...
Coding To Support Both .NET Full Framework and .NET Core
Sometimes when writing .NET libraries we want to support .NET Full Framework, as well as .NET Core. In many cases the functionality is the same, but sometimes it is different. For the cases where ...
Quickstart for Creating a Library Using the .NET Core CLI
The .NET Core 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.Sam...
Using SQL Server LocalDB with Travis CI Windows Builds
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...
Using JavaScript Promises And async/await Together
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 ...