• RecordVisitors – xml docs – part 6

    Now it is time to write technical documentation  – XML comments to the rescue – first,read the https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/xmldoc/ . Second,in order to minimize work,make the classes private / internal . See what I REALLY need to use the project – it remains some interfaces and extension methods. It was helpful putting warning as errors at…

  • RecordVisitors- NuGet–part 5

    Now it the moment to deploy to NuGet. First,we should have automatic build and deploy to NuGet with GitHub Actions.  This is pretty simple –  the yml becomes     – name: Pack run: |         cd src/RecordVisitors/         # dotnet pwsh setVersion.ps1         cd RecordVisitors         dotnet pack -o nugetPackages     – name: ‘Upload Artifact’…

  • Friday Links 427

    Top 10 Must-Have Tools for .NET Developers | The Startup HeidiSQL/HeidiSQL: A lightweight client for managing MariaDB,MySQL,SQL Server,PostgreSQL and SQLite,written in Delphi Static Types Considered Helpful � RealMensch dasMulli/data-builder-generator: Code generator to easily create data builder patterns for your model classes An AOP Example that Makes MemoryCache Easier to Use – CodeProject The Biggest Lie…

  • RecordVisitors–CI –part 4

    It will be perfect for any project to have a CI to improve feedback. GitHub actions is helpful here  – just put a gitlab.yml. After few iterations,mine looks like this name: BuildAndTest on: push: branches: [ main ]   pull_request:     branches: [ main ] jobs:   build:     #runs-on: ubuntu-latest     runs-on: windows-2019    …

  • RecordVisitors–code coverage–part 3

    Now I have to do some code coverage . The easy way is to test the web application – doing an integration test. Use this as a starting point: https://docs.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-5.0 I have 2 kind of tests: HappyPath  -when all is working ok – and  TestErrors  – when it is not. The code for all working…

  • RecordVisitors–code–part 2

    Now,after the idea is complete,let’s see the code. ( Yes,I know that TDD will be better … ) For the implementation : 1. Problems with the manual test-  how to create a Fake User – see below the solution. 2. Problems of how to let user define his own data You can find the original…

  • RecordVisitors-idea–part1

    It will be interesting to have a middleware of .NET Core that can record the name of the visitors in order to see what are the latest visitors of your site . What will be the uses ? See when the people has visiting your site See the latest visitors If you have a site…

  • Friday Links 426

    How to Balance Hard Work and Pleasure for Happiness – The Atlantic sourcegen.dev – Source Generator Playground – @davidwengier Calling Bullshit – Case Studies How to Be Productive,Feel Less Overwhelmed,and Get Things Done Use YARP to host client and API server on a single origin to avoid CORS What are Mixins,and how do you use…

  • Dotnet diagnostics / open telemetry on CI in 6 simple steps

    Prerequisites : Having Jaeger / Zipkin for visualization . The easy way for installing Jaeger is to have Jaeger all in one ( either via Docker,either run on PC)   Step 1: Modify the csproj to add this Optional : To see the RSCG files,add also Step 2: 2.1  If  ASP.NET Core  app,add the following…

  • Friday Links 425

    Main demo | RevoGrid – Excel like data grid component cloudcommunity/Free-Certifications: Curated list of free courses & certifications Multi-Tenant Architecture. Software Architect s library | by Alex Gurbych | Feb,2021 | Level Up Coding A simple template for Onion Architecture with .NET 5 | by David Pereira | Feb,2021 | Medium Microservices Architecture. Software Architect…

I am ok , you are ok