Posts

Showing posts from January, 2023

Coding Standards for .Net

Blossom Programming | Coding Standards for .Net  C#  Coding Standards The purpose of creating this set of rules is an attempt to set standards for C# coding that would be convenient and practical at the same time. Not all of these rules have definitive ground. We simply accepted some of them as standards. After all, it does not matter what you choose, but rather how strictly you follow the selected rules.   Basic Principles This document cannot cover all the cases you may face. If you have doubts, rely on the basic principles, applicable in any situation. Some of these principles are: The Principle of Least Surprise ( POLA ). Always favor the most obvious solution, to make your code understandable and not to confuse other developers Keep It Simple Stupid ( KISS ). Choose the simplest solution for your tasks You Ain’t Gonna Need It ( YAGNI ). Work on the task at hand, do not create code only because you think