Category: pet projects
-
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…
-
Aspire Resource for Aspire–part 3–usage
AspireExtensionsResource This package provides Aspire as a Resource in the Aspire Host Dashboard, making it easier to test and manage Aspire dashboards. You can download the solution at https://github.com/ignatandrei/aspireExtensions/tree/main/src/AspireResourceExtensions in order to see the tests. Installation Install via NuGet: Usage Add the Aspire resource to your distributed application builder: Use the resource to add environment…
-
Aspire Resource for Aspire–part 1–idea
I have published many Aspire Extensions ( see https://msprogrammer.serviciipeweb.ro/category/aspire/ – ) However, to make an AUTOMATED demo, I need the token url of the dashboard and the url itself. How can I obtain those and pass to the demo / tests ? So here are the specs As a Aspire Resource developer I wanted to…
-
WebApi SDK generator–part 2–naive implementation
The decision to implement were: https://github.com/OpenAPITools/openapi-generator – because has multiple language implementations has a WebAPI docker Implement one SDK generator per WebAPI – it is simpler to generate commands for each one , rather to have multiple on the same ASPIRE resource Can wait for 1 WebAPI to become available, rather for all This said,…
-
WebApi SDK generator–part 1–idea
In those days, every Web Project has 2 parts – an API and an SPA . If we document the SPA for the users, the API is directed more to programmers- and it will be helpfull to have already generated for them SDK for the language of their choice. There are many generators in the…