Category: .NET Core
-
TILT- TimeZone -part 22
To see if two TILTS are in the same day,it is not enough to see if the difference is less than one day. Could be less than 1 day in UTC – but in Europe/Bucharest can be the next day ( suppose that I put one TILT at 23:59:59 local time – the next TILT…
-
Vintage Development part 2 si RX
Pe 13 septembrie 2022,ora 19:30, va fi un nou meetup ADCES despre “Vintage Development part 2 si RX” Details Prezentare 1:Vintage development part 2 – VB6.0,Classic ASP,Windows NT Server,Visual SourceSafePrezentator: Julian Atanasoae,https://www.linkedin.com/in/julianatanasoae/ Prezentare 2:Reactive Extensions in .NET si JavaScript cu multe exemple in AngularPrezentator: Andrei Ignat,http://msprogrammer.serviciipeweb.ro/Descriere: In cadrul prezentarii o sa fie o introducere in…
-
TILT-AMS – about my software-part 21
One of the most related are data that fill the database for developer – and do not fill into production AMS ( About My Software) could help . It generates an unique class that inherits public class AboutMySoftware { public string Authors { get; set; } public bool IsInCI { get; set; } public string…
-
TILT-Angular 14 and small updates-part 20
It is always good to have the latest version of NuGet packages – if it does not break the application,of course. Easy task when you have some automated test -and Visual Studio is doing this for you. However,to update an Angular application where the version is fixed – a nightmare. I will do in a…
-
TILT-Server Timing in Browser-part 19
For see fast what is happening with your server,you can use the Server Timing API. One of the implementations for .NET is https://github.com/tpeczek/Lib.AspNetCore.ServerTiming . Not a big deal – implemented separately with AOPMethodsCommon – but I think it is a good idea to use it. The implementation was straightforward builder.Services.AddScoped<ServerTiming>(); var app = builder.Build(); app.UseServerTiming();…
-
TILT-caching- part 17
If you want to read about,see https://docs.microsoft.com/en-us/azure/architecture/patterns/cache-aside So,the public TILTS must be cached. Also,when a user makes a new TILT,the cache should be destroyed The code for Memory Cache is very simple: Add to services builder.Services.AddMemoryCache(); Add an MemoryCache cache to the constructor public MyTilts(IMemoryCache cache, add caching to the function if (cache.TryGetValue<TILT_Note_Table[]>(urlPart,out var result))…
-
TILT- cosmetic–part 16
The user must know something about the site. One of easy way is to display an intro – and I have choosed https://github.com/shipshapecode/shepherd Also display number of chars when putting a TILT display a text area instead of an input display links to my TILTS Added also https://codescene.io/ . Can be valuable – but I…
-
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…