Category: c #
C# is a managed programming language which means everything by default (or 90% of time), everything is properly managed by the GC (Garbage Collector), you don’t have to worry …
Code that is just-in-time compiled has some significant advantages over the compiled unmanaged code. 1. Reduced Memory Usage – It only compiles those methods that are actually used. 2. …
GUIDcan be used for random unique IDs. The chances of collisions are rare and that can be ignored. So instead of using Random() class to generate random characters/integers and …
Magic string constants are as bad as magic numbers. They are error-prone. One bad impact is that if you have quite a number of usages throughout the project, you …
In a team, each developer writes bad code sometimes. For example, in this post, the total number of general exceptions (C#) is counted in a code-base. Writing general exceptions …