Improving Moving Average implementation in conjunction with BenchmarkDotNet

Improving Moving Average implementation in conjunction with BenchmarkDotNet

Arjun Krishna

2 minute read

Last night I read an article about someone working on moving average calculation. I remembered I had done a similar exercise few years ago. I put it into BenchmarkDotNet and then wanted to try ArrayPool and ReadOnlySpan features in C# to improve its performance. I do not do much open-source stuff, so feel free to improve it and let me know where I have gone wrong. BenchmarkConsoleTest .

Configure Alexa Skill to use Blazor Backend

Configure Alexa Skill to use Blazor Backend

Arjun Krishna

4 minute read

I have an Alexa Skill for a personal project that utilizes azure functions for its backend. I had started dabbling into blazor wasm and wanted to try connecting an alexa skill to it with account linking functionality. I found a sample public repo which utilizes Identity server for managing users, so it was a perfect test bed for alexa account linking functionality. I faced some issues while doing that. I jotted down the steps which finally made it work and added them into a sample repository as…

Reverse Engineer Postgres Database Model Using EntityFramework Core

reverse engineer data model from postgres db

Arjun Krishna

2 minute read

I tried Dapper it was fun to use. It is pretty powerful. I now wanted to try entityframework-core. In Dapper, I did everything in database first. Now I wanted to do everything in code first. I’ve used entityframework earlier in my previous jobs so have an understanding how it works but there is always something new to learn.