It’s not personal. Your code reflects neither your beliefs, nor your upbringing, nor your character. Your thoughts and your opinions evolve, new ideas form, and you change. The you of today will be different from the you of tomorrow. Embrace the difference, you and your code are better because it.
Category: Code
The 5 Different Meanings of the Question Mark in C#
In C# the question mark has 5 meanings as of C# 8. Ternary operators 2. Null conditional operator 3. Nullable types (this should be rebranded as nullable value types) 4. Null-coalescing operator 5. Nullable reference types
The Collection Comparer, Finding the Differences Between Two Collections
Have you had to compare two collections and execute some logic based on whether the item is in the source collection, in the comparing collection or in both? Yeah, me too, I needed to merge data from the UI and the database. I couldn’t find a good solution, so, I wrote a collection comparer. To…
Implementing Request Caching in ASP.Net Core
At some point in an application’s development, usually, fairly early on, you realize the application is slow. After some research, the culprit is, unnecessarily retrieving the same data, and a light goes off, and you think: “I need some caching.” Caching is an invaluable pattern for eliminating redundant calls to a database or a third…