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,…
Category
dotNET
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…
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…
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…
Dotnet core – 415 unsupported media type error? Easy fix
Prologoue Hello friends! It’s been a while, again! I hope you are all going well and that this new 2021 is going to be better than the last 2020 year, for all of us. My New Years’ resolutions are to head back to posting each week blog post and to make one Youtube video per…
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,…
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…
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…
INTERVIEW JOB CODING TASKS – Calculate Tree depth and a number of leaves
Season 1 – Prologue So… You want to get that developer job, right? You are preparing (or not) yourself and You pass all the “theory” questions. And then You are assigned more stuff to do…You get a bunch of coding tasks to complete. It seems so exhausting and daunting to do. It takes time and…