Stefan Đokić Profile picture
➡️ I'm Your Guide to Becoming a .NET Pro! 👋 Posts about C# & .NET ➡️ Design Patterns Simplified e-book: https://t.co/RQgDHXE5Tg
Sep 20, 2023 6 tweets 3 min read
What is a Thread Pool Starvation?

And how to avoid it?

Continue reading 🧵

#Dotnet Image Thread Pool Starvation occurs when all the threads in the thread pool are busy doing work and are unable to service new requests.
This usually happens when you have long-running or blocking operations taking up the thread pool threads. Image
Sep 14, 2023 7 tweets 3 min read
Bring me a pizza, please 🍕

This is a Command Pattern. Let's simplify it. 🧵

The Command design pattern is a behavioral design pattern that turns a request into a stand-alone object that contains information about the request.

#Dotnet Image In a restaurant, a customer gives an order for a particular dish to a waiter. The waiter then passes the order to the kitchen staff, where the dish gets prepared. Image
May 12, 2023 5 tweets 2 min read
Adapter Design Pattern - Simplifed💡

Definition:

The adapter pattern converts the interface of a class into another interface clients expect. The adapter lets classes work together that couldn’t otherwise because of incompatible interfaces.

#Dotnet Image Real-Wolrd Analogy:

• Stefan from Serbia arrived in the UK.
• Stefan has a classic EU charger with a two-part outlet.
• The UK has a standard three-part plug.

How will Stefan charge his phone? Image
May 11, 2023 6 tweets 2 min read
How to increase productivity?

5 Visual Studio Refactoring Tips 💡

If we use 𝐕𝐢𝐬𝐮𝐚𝐥 𝐒𝐭𝐮𝐝𝐢𝐨 as an 𝐈𝐃𝐄, it can help us a lot to quickly and successfully refactor the code.

Visual Studio makes things easy for us and has support for a lot of code changes.

#Dotnet Image • 𝐑𝐞𝐧𝐚𝐦𝐢𝐧𝐠 𝐢𝐝𝐞𝐧𝐭𝐢𝐟𝐢𝐞𝐫

Use 𝐂𝐭𝐫𝐥+𝐑, 𝐑 - when you change the name of a variable in one place, all references are automatically changed.
May 10, 2023 6 tweets 1 min read
I almost started working on a new project. 🚀

These are the 4 steps I follow before coding: 🧵

#Dotnet 1. Requirements Gathering

I try to have a deep understanding of project goals, functionality, and user expectations. Therefore, I believe that clear communication at this stage lays the foundation for a successful outcome.
May 10, 2023 9 tweets 3 min read
C# | .Net Tip 💡

𝐇𝐨𝐰 𝐭𝐨 𝐢𝐧𝐜𝐫𝐞𝐚𝐬𝐞 𝐭𝐡𝐞 𝐫𝐞𝐚𝐝𝐚𝐛𝐢𝐥𝐢𝐭𝐲 𝐨𝐟 𝐲𝐨𝐮𝐫 𝐜𝐨𝐧𝐟𝐢𝐠𝐮𝐫𝐚𝐭𝐢𝐨𝐧 𝐜𝐨𝐝𝐞?

I'm sure everyone reading this post has heard of 𝐞𝐱𝐭𝐞𝐧𝐬𝐢𝐨𝐧 𝐦𝐞𝐭𝐡𝐨𝐝𝐬. 🧵

Good practice at the end of the post. 👌

#Dotnet Image When creating an application, the first thing we do is configure it.

We configure: logging, connect the database with ORM, and configure CORS.
We define the method of authentication, DI services, and various bindings.