Issue #12: DotNet (.NET)
Ahmed Tarek Hasan
Senior Software Design Engineer @ASML | Technical Blogger | Development Simply Put | Semiconductors | #DevelopmentSimplyPut
This issue would be about some?topics for DotNet (.NET)?developers.
Notes:
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.
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.
That’s it, hope you find reading this newsletter as interesting as I found writing it ??