Issue #7: DotNet (.NET)
Image by Ramdlon on Pixabay

Issue #7: DotNet (.NET)

This issue would be about some?topics for DotNet (.NET)?developers.


Notes:

  • If you like the content, you can always follow me on?Medium?and?Twitter.
  • If you don't already have a?Medium.com?account, you can subscribe through my?referral link?to help me get something back ??
  • All article links are?Friend Links. This means that you?don’t?need?Medium.com?Premium Membership to view the articles ??
  • I would appreciate?? if you Clap ?? and Comment ?? on my articles on Medium following the steps on this GIF (https://lnkd.in/gRM9875z)

No alt text provided for this image

Useful Free Online Tools For Developers

As a Software Developer, you have some tasks which you regularly need to take care of. Tasks like quickly compiling, running, and testing a line of code, formatting code, converting some code or exporting it as an image, editing or converting an image,… and some other similar tasks.

Therefore, I compiled a list of the?free?online?tools I usually use for such kind of tasks.

No alt text provided for this image

Observer Design Pattern in .NET C#

The?Observer Design Pattern?is one of the most important and commonly used design patterns, and this is for a reason.

First, let’s check the formal definition of the?Observer Design Pattern.

As per?Microsoft’s documentation:

The observer design pattern enables a subscriber to register with and receive notifications from a provider. It is suitable for any scenario that requires?push-based notification.?The?pattern defines a?provider?(also known as a?subject?or an?observable) and zero, one, or more?observers. Observers register with the provider, and whenever a predefined condition, event, or state change occurs, the provider automatically notifies all observers by calling one of their methods. In this method call, the provider can also provide current state information to observers. In .NET, the observer design pattern is applied by implementing the generic?System.IObservable<T>?and?System.IObserver<T>?interfaces. The generic type parameter represents the type that provides notification information.

So, from the definition above, we can understand the following:

  1. We have two parties or modules.
  2. The module which has some stream of information to provide. This module is called?Provider?(as it provides information), or?Subject?(as it subjects information to outside world), or?Observable?(as it could be observed by outside world).
  3. The module which is interested into a stream of information coming from somewhere else. This module is called?Observer?(as it observes information).

No alt text provided for this image

That’s it, hope you find reading this newsletter as interesting as I found writing it ??


#ahmed_tarek_hasan?#dotnet #csharp #coding #code #programming #development #devcommunity #computerscience #softwaredesign #softwaredevelopment #softwareengineering #softwarearchitecture #bestpractices #designpattern #webdev

要查看或添加评论,请登录

Ahmed Tarek Hasan的更多文章

  • ?? Exciting News: Official Launch Of DSP Community ??

    ?? Exciting News: Official Launch Of DSP Community ??

    I am thrilled to share with you the official launch of my new software engineering website, blog, and community. A…

    4 条评论
  • Converting an Enum to Another In .NET C#

    Converting an Enum to Another In .NET C#

    Guide on how to convert an Enum to another in .NET C#.

  • When using += Is Not Good In .NET C#

    When using += Is Not Good In .NET C#

    The main goal of this article is to demonstrate how a simple detail in our code could cause huge problems which are so…

  • Secrets of the Single Responsibility Principle

    Secrets of the Single Responsibility Principle

    Uncover the secrets about the Single Responsibility Principle (SRP) of the SOLID Principles. Almost all developers…

  • Issue #14: DotNet (.NET)

    Issue #14: DotNet (.NET)

    This issue would be about some topics for DotNet (.NET) developers.

  • Importance of Immutability In .NET C#

    Importance of Immutability In .NET C#

    Is Immutability really a good thing? Why? How To Apply? This is one of the most interesting topics to me to the extent…

  • Dangers of Using Optional Parameters In .NET C#

    Dangers of Using Optional Parameters In .NET C#

    When to be cautious while using Optional Parameters in .NET C# We all know about Optional Parameters and we love to use…

  • Defensive Copy In .NET C#

    Defensive Copy In .NET C#

    Everything about Defensive Copy in .NET C# Did you ever hear about Defensive Copy in .

    1 条评论
  • Compiler-Friendly Code: Sealed Keyword in .NET C#

    Compiler-Friendly Code: Sealed Keyword in .NET C#

    Why & When Sealed Keyword could lead to a performance boost in .NET C# What does it mean to write compiler friendly…

  • Why Split Large Methods Into Smaller Ones?!

    Why Split Large Methods Into Smaller Ones?!

    Learn when splitting large methods into smaller ones makes the impossible possible. As a software developer, you have…

    1 条评论

社区洞察

其他会员也浏览了