Category

dotNET

How to organize Visual Studio projects

In my latest Youtube video, I talked about how to organize Visual Studio projects in a Visual Studio blank solution to support multilayered architecture. Why should you organize your application in a multilayered way? Well, so your app becomes more robust, easy to upgrade and maintain. This way you know where and how to look,…

Read More

Caching in DotNet Core WebAPI using Strategy Pattern

Let me write today about Caching, Repository pattern and finally about CacheRepository by using Strategy pattern. So, I’ve seen a lot of developers use caching pretty differently.  And mostly what I’ve seen, was, them using cache inside the Controller or BLL, if there is one. I don’t think this is a proper way of doing…

Read More

How to fix the IISExpress SSL certification issue

Let’s continue with DotNet stuff. One of the problems I’ve encountered when dealing with IISExpress and using Visual Studio was when I used SSL for application. If you are working in a team of developers, you probably agreed upon a valid port number for SSL.  In my case it was port number 5001.  Since I’m…

Read More

Automapper Optimization

Today I’ll write about Automapper optimization when using Entity Framework. I won’t go into too much detail about what AutoMapper is and how to use it, I’ll give you just a short intro.  I will focus more on how to optimize AutoMapper if you are using Entity Framework. As I see some people tend to…

Read More

INTERVIEW JOB CODING TASKS – XML file manipulation

It’s been a while, once again, since my last post. But due to a much of stuff, I’m doing in the background, I guarantee you, it’s going to be worth it! Bunch of changes is going to be presented to you very soon as well as new content, in a much more professional way. Anyway,…

Read More

INTERVIEW JOB CODING TASKS – Calculate permutations

Today we are going to continue with interview coding tasks. I really do hope this, solved, coding task is going to help you during your interview. Task: Depending on input value i.e. (123) create all permutations i.e:(123,213,231,132,312,321) Solution: Cheers

How-To setup global exception handler in .NET Core?

Today I’ll try to be precise and straight to the point as possible.If you want to simplify your code by removing unnecessary try {} catch {} blocks of your code inside API Controllers, then you probably want to use some kind of global hook in which you are going to handle global exceptions. The way…

Read More

Top 10 quick code refactoring tips with C#

Hi there! A few weeks passed by since my last blog post. Well, the holiday time was on and I wish you all the best in 2020. I hope you all had a great time. But it’s time to move on. So, buckle up your seat belts and let’s move on as we have a…

Read More