Category: AI
-
Deploy to nuget
GPT 4.1 was incredibly usefull. But having the 2 AI reviewers ( Copilot and Code Rabbit )were best : improving the .csproj improving the github action to publish with the name of the build and many others See https://github.com/ignatandrei/Filters/pull/11 Discussion Human Please add readme and other things to deploy to nuget the Filters csproj from…
-
Cosmetic fixes
Before deploy to Nuget I think how the programmer will use it . And the problem is the generated code – it repeats the name of the class twice .So AI will do some cosmetic fixes : Remove from the namespace the name of the class namespace FpFilters.NumberFilters { public static class NumberFilters modified to…
-
Interlude–AI Code Review
CodeRabbit ( https://www.coderabbit.ai/ ) provides a free tier for OSS to do code reviews Also GitHub Copilot does that. So I tried both . And it is nice to see their suggestions ( for example, see https://github.com/ignatandrei/Filters/pull/1 and the other PR ) and then telling to another AI to do the changes It was pretty…
-
Adding Linq functions
LINQ is a powerful feature in C#, and this post showcases its integration into filter tests. By adding LINQ-friendly overloads and corresponding BDD tests, the filters became more versatile and idiomatic for C# developers. I give the general instruction that, << for any function with 2 parameters, add a function that can be used in…
-
Pareto principle for CodeCoverage
The repeated discussion with AI about each filter ( string, boolean , number and so on) bring code coverage is 87.28 %. I do aim to reach 100% . Why ? Because I haven’t created or teste the project manually , but it is MY project under MY name . Resume of how I have…
-
Adding Code Coverage
Before adding functional functions to address Linq Where extension , I do aim to have 100 % code coverage – in order to know that all functions well . So tried to add code coverage with AI . You will find below the Whole discussion . It works enough well , with 2 problems: Repeating…
-
Minimizing code with global usings
I am fond of having all the usings declarations in a global.cs file by using global ( as opposed to have one by each file ) So I want that AI to remove redundant using statements from test and filter files and introduced global using directives in new global.cs files for both FpFilters and FpFilters.Tests…
-
Improving BDD Tests with HTML exports
So now I have the reports to the console – but it will be better if I read them in a text file . So I have tried to add automatically report export into HTML . You will find below the Whole discussion , but AI did not make it . If you follow the…
-
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…