Quantcast
Channel: OdeToCode by K. Scott Allen
Browsing all 513 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

UseNodeModules Updated for .NET Core 3

UseNodeModules is a NuGet package I put together a few years ago. The package gives you an easy way to install middleware for serving content directly from the node_modules folder in an ASP.NET Core...

View Article


Image may be NSFW.
Clik here to view.

Something to Know about gRPC in ASP.NET Core 3

gRPC is a framework you can use in ASP.NET Core 3 to build APIs. The gRPC framework offers both advantages and disadvantages compared to the HTTP based APIs we’ve always been able to build using...

View Article


Image may be NSFW.
Clik here to view.

Switch Expressions are the Best Feature of C# 8

I thought <Nullable>enable</Nullalble> would be the star of the C# 8 show by now, but in day to day work I'm finding that switch expressions are stealing the show.Size = 1 + Operands.Size;...

View Article

Image may be NSFW.
Clik here to view.

Beautiful Binary Literals

Finally! I've used binary literals in real code. This feature, and the digits separator have been good additions to the C# language. public static byte[] BreakIntoTwos(byte value) { var result = new...

View Article

Image may be NSFW.
Clik here to view.

Tracking Down an AspNetCore Build Error

Building AspNet Core from source is straightforward, unless, like me, you run into strange errors. My first build compiled over 600 projects successfully, but ended up failing and showing the following...

View Article


Image may be NSFW.
Clik here to view.

Solving Access Denied in Crypto Machine Keys

Previously on OdeToCode I posted about tracking down an AspNetCore build error. Once I realized the access denied message came from the ProgramData\Microsoft\Crypto\RSA\MachineKeys folder, I went...

View Article

Image may be NSFW.
Clik here to view.

Nine Performance Tips for Azure App Services

This post originally appeared on the Progress Telerik blog.IntroductionWe always want the best performance from the software we deploy to Azure App Services. Not only does better performance make our...

View Article

Image may be NSFW.
Clik here to view.

Moving Complexity

I always feel a sense of satisfaction when I move a piece of complexity from outside an object to inside an object. It doesn't need to be a large amount of code, I've learned. Every little step helps...

View Article


Image may be NSFW.
Clik here to view.

Avoiding the Debugger with Better Logging

There's actually two reasons why I tend to avoid using debuggers. The first reason is a genuine belief that debuggers encourage short term thinking and quick fixes in software. The second reason is the...

View Article


Image may be NSFW.
Clik here to view.

The C# Interactive Window

The C# Interactive window in VS is not the best interactive C# experience, LINQPad still has the honor, I believe, but it is a quick and convenient option for trying out a few lines of code.

View Article

Image may be NSFW.
Clik here to view.

A Custom Renderer Extension for Markdig

A couple years ago I decided to stop using Windows Live Writer for authoring blog posts and build my own publishing tools using markdown and VSCode. Live Writer was a fantastic tool during its heyday,...

View Article

Image may be NSFW.
Clik here to view.

Automatic Image Uploads with Markdig Processing

Continuing the story of replacing Windows Live Writer with some custom tools...One of the best features of WLW was the ability to paste an image into a post and have the image magically appear on the...

View Article

Image may be NSFW.
Clik here to view.

Markdown Front Matter For Metadata

Continuing the story of replacing Windows Live Writer with some custom tools...In addition to image uploads and code formatting, I also needed the ability to:Specify the date and time for the post to...

View Article

Browsing all 513 articles
Browse latest View live


Latest Images