Category: AI

  • VibeCoding and testing to BDD to understand the output

    So the AI has written all tests for the solution. But now the problem was reading all those tests. For example for this code public static class ArrayFilters { // Checks if the argument is included in the comparison array public static bool IsIncludedIn<T>(T arg, T[] comparisonArray) { return comparisonArray != null && comparisonArray.Contains(arg); }…

  • Converting from https://github.com/Oaxoa/fp-filters – generate

    History of how I ported https://github.com/Oaxoa/fp-filters to csharp So to  port from Javascript to CSharp  I followed those steps Clone the original project – easy Open in VSCode – easy Start discussing with GPT4.1 . Easy enough – see Whole discussion Verifying the results. This was the difficult part. So in the time span of…

  • TransCSharpGlot programming

    History of how I ported https://github.com/Oaxoa/fp-filters to csharp This is my first attempt to utilize AI to translate from a programming language to another . To be easy, I choose the npm package https://github.com/Oaxoa/fp-filters to be translated to C# nuget package . It could bring some benefits to C# programmer to replace var numbers =…

  • Deciding between implementations of Roslyn Code Generator for an enum retrieval

    Aspire .NET Global Tool Extension (https://github.com/ignatandrei/aspireExtensions/blob/main/src/DotNetGlobalToolsExtensions/README.md ) supports installing a .NET Tool by name. To have more easy for me, I have created an enum ( int64 ) with tools that I want to install automatically . The enum is Flag composable ( 1,2,4 …) – and I want to find the Sum value in…

  • AI and difficult programming task–part3–solution

    TL;DR: Saving in wpost format from OpenLiveWriter is too hard, even if the source code is available.AI gives the same error . Solving manually by making reference to dlls Please read the previous posts for the problem (https://msprogrammer.serviciipeweb.ro/ai-and-difficult-programming-task-part1 , https://msprogrammer.serviciipeweb.ro/ai-and-difficult-programming-task-part2-easy-path ) I have downloaded the source code for OpenLiveWriter on local HDD . The discussion…

  • AI and difficult programming task–part2–easy path

    TL;DR :  if the task seems too difficult, AI will take the easy path . Even if it is not correct… The task that I wanted to do with AI is to create a wpost file in OpenLiveWriter format . The discussion with AI went something like ( see appendix 1 for the whole discussion)…

  • AI and difficult programming task–part1

    OpenLiveWriter , https://github.com/OpenLiveWriter/OpenLiveWriter , it is a good editor to write blog posts. I use him for this blog . I plan the blog posts in advance – mostly the friday links , https://msprogrammer.serviciipeweb.ro/category/friday-links/ , that comes from my browser bookmarks. As OpenLiveWriter  saves the drafts into a specific folder in a specific format (…

  • AI and most used path

    TL;DR : he problem with AI is that he is giving solution – most precisely, the most used solution. Not the best one, but the most used . I have had to export a DTO to HTML . There are multiple ways to do that . One is to add HTML code into a string…

  • AI and clean a .NET solution of warnings

    This is about how I wanted to clean a C# solution of warnings. The solution had a lot of warnings, and I wanted to remove them. I started with a simple prompt to remove all warnings, but that didn’t work. The number of iterations were : 17 For the ones in a hurry ,this is…

  • AI and upgrading WordPress- part 4- four points to work with AI

    The task was to upgrade a WordPress blog to the latest version, keeping ONLY comments and posts . Using AI You  could do one solution architecture per day and going far , far away by letting AI to generate code. Also, if it is wrong, I do another one next day .    Caveat Do…