AI Models Doing CRUD Programming

   The other day I wanted to get GitHub Copilot to write for me a boring method, an Update operation (the U in CRUD). I wasn't happy with the result  at all so I decided to test with the various AI models that are available in Copilot chat. This article is a summary of the results...
Posted by:   Stilgar
01:14 04.03.2025

Generating Swagger for Validation Attributes on Positional Records in ASP.NET

   When building a web API with ASP.NET in most cases I want to generate Swagger (a.k.a. OpenAPI, what a boring name). Since records became a thing in C# I almost exclusively use positional records for my DTOs. I just assumed that Swashbuckle handles everything perfectly. It was pointed out to me that our Swagger does not mark non-nullable properties as required and I then realized that in Swagger just like in JS non-nullable and required were not the same thing. I started digging and I found out that the OpenAPI specs allows for much more information around validation like a regex pattern, min and max value and a couple more that are rarer. So why are these not generated for my project?
Posted by:   Stilgar
15:18 15.07.2024

On C# 11 Features

On C# 11 Features
   Another year another C# version. Of course, the version just released is 12 but I am going to share my impressions of version 11 after using it for a year. As is my new policy I will only share my impression while leaving the explanation of what they do to Microsoft...
Posted by:   Stilgar
02:19 10.12.2023

On C# 10 Features

On C# 10 Features
   Yeah, I know C# 11 was released weeks ago but I have not written about C# 10 yet! I have been working with C# 10 for a year and it is time to share my impressions. Of course I did not use every feature, especially the low-level ones and in these cases I will share my opinion guided by my expectations about how I would feel if I used it. I will not explain what the features do but you can follow along with Microsoft's explanation of the features here...
Posted by:   Stilgar
02:39 28.11.2022

Lemnis Gate печели наградата "Игра на годината според Stilgar" 2021

Lemnis Gate печели наградата "Игра на годината според Stilgar" 2021
   Да, знам че сме края на 2022. Закъснението на връчването на наградата се дължи на няколко неща. Първо – мързел, второ – новата ми политика да играя игри след няколко пача, които оправят най-големите им проблеми и трето – все се надявах нещо да се случи и когато обявя играта на годината за 2021, този шедьовър някак си да е възкръснал от мъртвите. За съжаление ви предстои да прочетете история за великолепна игра за която никой не разбра...
Posted by:   Stilgar
03:41 14.09.2022
First Previous 1 2 3 4 5 6 7 8 9 10  ... Next Last