Code Review Best Practices: A Short Guide

Code review is an essential part of development workflow. It can have a big impact on the quality of our code and the delivered result. So, it’s important to make sure it is done correctly. Code review is one of those tools that have a high return on investment. So many companies invest in building … 

 

How to code for beginners: 4 Vital Points

There’s a lot of debate these days over whether or not it’s still necessary for people to learn how to code. Once not so long ago, coding was viewed almost as an emerging necessity. almost like a language people would be wise to learn in order to make the most of an increasingly tech-driven world. … 

 

How to mock APIs with Binary Responses using Postman Mock Server

There are different solutions for mocking an API endpoint. Such as using Microsoft Flow or doing it manually on a sever. But Postman mock servers can be a better fit if you already use Postman for your API development. Also, the initial use of their mock server is free with some limitations which I’m going … 

 

Enum Serialization: System.Text.Json vs Utf8Json vs Jil vs Newtonsoft

I was reading about the new System.Text.Json in .net core 3 and comparing its speed to other libraries. You can read more about it here if you’re interested. To put it shortly, the new serializer is faster then Newtonsoft but not as fast as others. Also the enum serialization between different libraries can be inconsistent. … 

 

Careful Model Binding JavaScript ISO Date Format to DateTime

It is agreed by the .Net community that DateTime should not be used when we develop .Net applications. You can read more about why that here. In short the least we can do is to use DateTimeOffset instead. But this post is not about the common problems associated with using DateTime. But rather it’s about … 

 

NDepend Dependency Graph

I previously wrote about NDepend here and examined some of its features. But since then, NDepand evolved to add a lot of other interesting features such as NDepend Dependency Graph. I have to say I was pleasantly surprised by this new feature. In this post I’m going to go through my experiences with it and … 

 

The Right Balance Between Different Types Of Test

Testing strategy is one of those topic that can get very tricky to figure out at the start of project. What I mean is every project depending on the type, needs a specific type of test more than others. For example if a project contains a lot of complicated logic and algorithm then unit testing … 

 

Using IHttpClientFactory with Asp.Net MVC 5

Recently in my company we wanted to use IHttpClientFactory  with our web app. But the problem was IHttpClientFactory was originally meant to be used with Asp.Net Core and not MVC 5. So I had to find a workaround that to be able to use it with older MVC applications. So in this post I’m going … 

 

XUnit – Part 8: Using TheoryData Instead of MemberData and ClassData

I previously wrote about using MemberData, ClassData in this  post. The problem with those are their reliance on IEnumerable<object[]>. This can cause runtime issues even if we don’t get any errors at compile time. In this post I’m going to introduce a strongly typed option in xUnit called TheoryData. So in this post I’m going … 

 

Upgrade to Asp.Net Core From Asp.Net MVC 5

I’m working on a project written with Asp.Net MVC 5 were I work. We intend first upgrade our class libraries to .Net Standard as much as we can. Then we make the move to Asp.Net Core. But since we have many class libraries, I’ve decide to first do a little search about what is the … 

 

News And Articles Once A Month, Covering:

  • .Net
  • Asp.Net Core
  • Unit Testing
  • Functional Programming