Issue #12: DotNet (.NET)
Photo by Kyle Glenn on Unsplash

Issue #12: 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 ?? (up to 50 times) and Comment ?? on my articles on?Medium.

No alt text provided for this image

Flagged Enumerations: How To Represent Features Combinations Into One Field

Sometimes when building your Software system and while designing a set of modules, you find that every module of these modules could -or couldn’t- support some features of a predefined list of features.?At the end, there should be some field or property which maps each module to its supported features.

For example, let’s say that we are working on a game where every character in the game would -or wouldn’t- be able to:

? Walk

? Run

? Speak

? Scream

? Fight

? …

A character might support the features?Walk,?Run, and?Speak?only. Another character might support the features?Walk,?Scream, and?Fight?only. And so on,…

Now, let’s say that you want to have only one field or property on the?Character?class to represent these features so that at any time using the value of this property you can know all the singular features supported by a certain?Character?instance.

How would you do this? Someone might say:

Use?Flagged Enumerations, it is easy.


Yes, this is right, but,?do you know the concept that is already used in?Flagged Enumerations?

This is what this article is about.

No alt text provided for this image

What Is Caching In Software Systems

Every Software Engineer has heard about?Caching. It is a term which you would hear from time to time especially when you work on big Software Systems.

On these systems, most probably you would deal with huge amount of data and different services and this is where?Caching?becomes useful.

However, from time to time I come across some wrong statements about caching. Sometimes these statements are about wrong goals or usages of Caching, other times are about handling Caching, and too many times about implementing Caching.

That’s why I decided to write this article to share with you my understanding of Caching and some best practices that are proved to be efficient.

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

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

社区洞察

其他会员也浏览了