Upgrade Your .NET Console App Experience

The lowly console application has gotten a sad reputation in the .NET ecosystem. Generally, the project format is relegated to the arena of the demonstration. We’re all guilty of starting and abandoning that ConsoleApp341 project. It is time the console app gets the respect it deserves. Source: khalidabuhakmeh.com/upgraded-dotnet-console-experience

map vs filter vs reduce

Array.map – map all values to an expression. 1] Expression value + 1 is applied to every item in the original array. 2] .map() returns a modified copy of the array leaving original untouched. 3] Result: [2,3,4,5,6,7,8] (a copy of the original array is created.) Array.filter – keep all that match a condition. NOTE: there is a small mistake in the animation. It should return [6,7], not [6,7,8]. I’ll fix it shortly. . . […]

Deploy dotnet Core MVC on Ubuntu with Supervisor

Introduction I Just purchased a Linux VPS and started to install dotnet core on it and use it for deploying dotnet core apps Removing Apache Most of Linux vps comes with apache so first step is to remove it. sudo service apache2 stop sudo apt-get purge apache2 sudo apt-get autoremove Finally, check if there is any configuration files […]

The Mediator Pattern In .NET Core

A couple of years back, I had to help out on a project that was built entirely using the “Mediator Pattern”. Or more specifically, built entirely using the MediatR library. There were all these presentations about the “theory” behind the Mediator Pattern and how it was a real new way of thinking. I couldn’t help but think… We’ve been doing […]

C# RSS generator in less than than 50 lines of code

What kind of technical blog doesn’t have RSS feed? Well, this one didn’t have one. This short post will present single method for generating RSS feed we are using, and answer why we are not using existing solution. After googling for existing solutions for generating RSS feed, one of the first solution was to use Wildermuth’s RssSyndication library. After trying […]

1 2 3 11