• TILT- GUI–part 15

    Now the easy way for me is to create a web interface with Angular. Nothing too complicated. This is how it looks for the TILTS at https://tiltwebapp.azurewebsites.net/AngTilt/tilt/public Now,if I am going to a TILT Url,I can see the TILTs in the browser: https://tiltwebapp.azurewebsites.net/AngTilt/tilt/public/ignatandrei For creating new TILTS,I can use the web interface https://tiltwebapp.azurewebsites.net/AngTilt/tilt/my I enter…

  • TILT–CodeCoverage–part 14

    The code coverage should be simple – just run tests and that’s all,right ? For a reason,the coverlet console,dotnet-coverage,dotnet test do not work – means that code coverage generated was 0% ( I have verified with dotnet-reportgenerator-globaltool ) The only that worked was altCover and this is the code into the yml: dotnet test –no-build…

  • TILT–Analyzing code–part 13

    I want a static analysis tool that can be used to check the quality of the code. SonarCloud.io is a great tool for this. You can find the instructions for the tool here: https://sonarcloud.io/dashboard/index/organization/sonarcloud/project/sonarcloud-project-id It was easy to set up – and it is free. You can see the results here: https://sonarcloud.io/summary/overall?id=ignatandrei_TILT This is the…

  • Friday links 488

    Chrome broke features of the web and forgot to tell anyone • The Register AspNetCoreDiagnosticScenarios/AspNetCoreGuidance.md at master · davidfowl/AspNetCoreDiagnosticScenarios AspNetCoreDiagnosticScenarios/AsyncGuidance.md at master · davidfowl/AspNetCoreDiagnosticScenarios Extracting text from any file is harder than it looks. Extracting formatting is even harder. – Stack Overflow Blog Covariance and Contravariance in TypeScript Enable tab completion – .NET CLI |…

  • TILT- Tests- part 12

    First,it is a decision between NUnit and XUnit. I took this time NUnit. Also,I take LightBDD to show data. Let’s say I want to verify the rule that the user cannot make more than 1 TILT per day. In order to do 1 TILT per day User must be authenticated and have have an URL…

  • TILT–Telemetry–part 11

    I want to see what is happening in my application – i.e. having the Stack Trace for any kind of errors. I have add with [AutoMethods(CustomTemplateFileName = “../AutoMethod.txt”,MethodPrefix = “auto”,template = TemplateMethod.CustomTemplateFile)] [AutoGenerateInterface] public partial class AuthUrl : IAuthUrl { [AOPMarkerMethod] private async Task<string?> privateLogin(string url,string secret) { //code And inside the method var act=Activity.Current;…

  • TILT- BlocklyScenario–part 10

    Scenario for adding and retrieving the own TILTs I needed a way to show to the front-end programmer how he should call the API. One is to retrieve all the TILTS urls and the other is to add a new TILT,once authenticated I have used NetCore2Blockly nuget package and configured with demoBlocks ( wwwroot\BlocklyAutomation\assets\showUsage\demoBlocks )…

  • TILT–Authentication and Authorization–part 9

    This is the difficult part. I decide that,for the moment,I do not need in the application any fancy authorization – just a simple url + secret ( a.k.a password). I decided also to use JWT – it is a simple way to add authentication + authorization to the application. Let’s see the login code var…

  • Friday links 487

    Hakim El Hattab A Perspective on Laws of Software Development | Steve Fenton The Post-Incident Review – IT Revolution ShortURL/ShortURL.cs at master · delight-im/ShortURL pieroxy/lz-string: LZ-based compression algorithm for JavaScript mihaifm/linq: linq.js – LINQ for JavaScript API Versioning Do’s and Don’ts. It’s never too soon to get started… | by Fernando Doglio | Oct,2021 |…

  • TILT–HealthCheck–part 8

    Read about https://docs.microsoft.com/en-us/azure/architecture/patterns/health-endpoint-monitoring In ASP.NET Core it is easy to add health checks to your web application. I have added for Sqlite in the release and for SqlServer in the Azure. This is the code bool IsBuildFromCI = new XAboutMySoftware_78102118871091131225395110108769286().IsInCI; //more code builder.Services .AddHealthChecksUI(setup => { var health = “/healthz”; if (IsBuildFromCI) { health =…

I am ok , you are ok