Razor Pages vs MVC – Which One is the Best for Your Project?

Razor Pages vs MVC

In ASP.NET, most developers use one of the two architectural patterns to build web Applications: Razor Pages and Model View Controller. They are slightly different in structure and development approach. This GitHub issue is why Microsoft tends to bring the Razor Pages in front of .NET documentation. More people commented against Razor Pages, but others came up with some advantages … Read more

Implementing Singleton Pattern In C#

Singleton Pattern

Singleton is a creational design pattern. I think even a junior developer should know at least this design pattern. It’s the most used design pattern and is simple. This pattern solves the problem when you want to have only one instance. For example, let’s think about a connection to a server. You don’t want to open multiple connections from the … Read more

Solving FizzBuzz Problem In C#

Solving FizzBuzz Problem

FizzBuzz problem is a simple algorithm test given in interviews. I think I received this at least five times. So you will probably also receive it at your following interview. The problem sounds like this: Write a program that prints the number from 1 to N: If an integer is divisible by 3, then print Fizz. In case it is … Read more