When to use NoSQL Database Instead of Relational Database

The traditional SQL database is an optimal solution for highly structured data that’s often required in accounting and e-commerce. But for unstructured data, NoSQL databases are the way to go. MongoDB’s post on NoSQL vs. SQL databases is an article that goes deeper into that subject. But long story short, the biggest difference is that … 

 

How to Choose a Good Software Testing Strategy

Previously I wrote an article titled The Right Balance Between Different Types Of Test. This article in intended to act as a complementary piece that will help us to make a better choice when it comes to adopting a testing strategy. In this post we’re going to first see what different types of tests are … 

 

Integration Test In Asp.Net Core 6 Using SqlServer Image and TestContainers

This post is about writing integration tests and TestContainers. As you might know writing integration tests against the in-memory provider is a bad practice. Because it only works well with trivial solutions. Mostly because the in-memory API of IQueryProvider doesn’t match the LINQ query provider. Here’s a good article called “Avoid In-Memory Databases for Tests” … 

 

How to Use Elastic Search Geo Shape Query

There are circumstances when we have a set of coordinates and we want to perform a  geo search on them. More specifically we want to find out if the coordinate used in our search falls within a shape. In that case we can use the Elastic Search geo shape query to achieve that. In this … 

 

Color Coder: Using Roslyn APIs For Syntax Highlighting

Couple of years ago, I’ve created a Visual Studio extension to colorize things in C#. More specifically I was trying to colorize different programming constructs such as extension methods. So it had to be done in a syntax aware manner as oppose to coloring text. For that I used Roslyn .NET compiler to do this. … 

 

Elastic Search: Highlighting Text That Contains HTML Tags

Using Elastic Search highlighting is normally straightforward. But sometimes we have a piece of text that contains other information. For example we may have a text the contains html tag or other information that we want to ignore. In these cases using the normal highlighting does not give us the result we’re seeking. For example … 

 

Unable to locate the .NET SDK: The Reasons

The other day after installing some windows update, I tried to open Visual Studio. I opened my project and I received an error regarding .Net Sdk. The project file cannot be opened. Unable to locate the .NET SDK. Check that it is installed and that the version specified in global.json (if any) matches the installed … 

 

How to Change Elastic Search Index Mapping Without Losing Data

As you might know Changing the mapping to an elastic index is not allowed. Although certain changes are possible such as adding a new fields, other changes to the mapping is not easy. In this article we see how we can change the Elastic Search mapping without losing data. I’m going to bring some examples … 

 

Why Use Rust for Web Development

From Python to Java, there are plenty of languages that have been used for programming over the years. However, a newcomer is showing a lot of potential: Rust. True enough, Stack Overflow’s annual survey featured Rust as the most-loved programming language in 2020. This was its fifth straight year topping the charts. What is Rust? … 

 

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 …