(Ben Nadel) A few years ago, I wrote about how I don’t like “Update” methods in my API design. In that post, I talked about my “feelings” on the matter because I couldn’t really articulate the red flags that were going off in the back of my mind.
Tag: Development
Unit Testing ASP.NET Core MVC Controllers with Moq and XUnit
(Matthew Jones) Let’s continue our unit test extravaganza by writing a set of unit tests for our ASP.NET Core MVC Controllers!
Switch Expressions are the Best Feature of C# 8
(K. Scott Allen) I thought enable 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.
How to Do Machine Learning Perceptron Classification Using C#
(James McCaffrey) Perceptron classification is arguably the most rudimentary machine learning (ML) technique. The perceptron technique can be used for binary classification, for example predicting if a person is male or female based on numeric predictors such as age, height, weight, and so on.
Getting ColdFusion Date Objects From UTC Milliseconds In Lucee CFML 5.3.3.62
(Ben Nadel) The fun thing about maintaining a legacy code base is that you’re constantly turning over stones to find new and exciting areas of code-rot and technical debt. Just yesterday, I discovered that one of my ColdFusion servers was deadlocked on some Date/Time code that was not thread-safe.
A technique for building high-performance databases with EF Core
(Jon P Smith) As the writer of the book “Entity Framework Core in Action” I get asked to build, or fix, applications using Entity Framework Core (EF Core) to be “fast”. Typically, “fast” means the database queries (reads) should return quickly, which in turn improves the scalability of the database.
Updating an ASP.NET Core 2.2 Web Site to .NET Core 3.1 LTS
(Scott Hanselman) Now that .NET Core 3.1 is out jus this last week and it is a “LTS” or Long Term Support version, I thought it’d be a good time to update my main site and my podcast to .NET 3.1.
Error Variable Randomly Exists After Running CFExecute In Lucee CFML 5.3.3.62
(Ben Nadel) Yesterday, I was running into a bit of confusion when running the cfexecute tag in Lucee CFML 5.3.3.62. When you define your cfexecute attributes, you have the opportunity to provide both a variable attribute and an errorVariable attribute that hold the success results and the error resu
.NET Core: Writing Really Obvious Code with Enumerated Values in gRPC Web Services
(Peter Vogel) I’m a big fan of what I call Really Obvious Code (ROC – “ROC rocks!”). I’ve even written a column on how ROC is so much better than comments that you shouldn’t be writing comments: Your time is better spent on creating ROC.
Localising Data Annotation Attributes in Razor Pages
(Mike Brind) This is the third article in a series that explores various aspects of localisation in ASP.NET Core Razor Pages applications. The first article looked at how to work with cultures, and the second covered the basics of using resource files for static content translations.