Refactoring Static System Clock Access
If you have logic that depends on dates and/or times, it can be difficult to test if it's directly accessing the system clock (via DateTime.Now in.NET, for example).
MANY articles on a wide array of topics. You’ll find a lot of my newer content is going to my YouTube channel first, but I do still blog occasionally.
If you have logic that depends on dates and/or times, it can be difficult to test if it's directly accessing the system clock (via DateTime.Now in.NET, for example).
Filters are a great, often underutilized feature of ASP.NET MVC and
I've written about Enum Alternatives in C#, and a common problem
A common but insidious dependency in many.NET applications is their use of configuration, including appSettings.
Some (many) user interfaces work best when buttons are sized identically, so that instead of this: or this: You have something like this: This is pretty easy to do in JavaScript, and jQuery make it simple to apply the …
Some time ago I wrote about Moving Beyond Enums and published an
When you set up an ASP.NET Core app, most of the time you begin with the Startup.cs file, which provides essentially three places where you can add code: Constructor ConfigureServices Configure Naturally, the constructor …
In a recent article, I showed how to configure logging for your Startup class in ASP.NET Core. With this configured, it's easy to log all of the services that have been configured in ASP.NET Core services container.
There's no upper limit on how large an ASP.NET Core app can get,
This is much harder than it should be to find, especially when most of the help online is wrong and refers to previous versions. For instance, there is no Page Setup menu under the File menu in recent versions of Visio.