Click here to Skip to main content
15,877,754 members
Articles / Programming Languages / C#

C# Bad Practices: Learn How to Make Good Code by Using Examples of Bad Code

Rate me:
Please Sign up or sign in to vote.
4.82/5 (510 votes)
13 Apr 2016CPOL14 min read 717.9K   578  
The purpose of this article is to show how to write a clean, extendable and maintainable code by showing an example of a badly written class.
I will explain what troubles a badly written class could bring and present a way to replace it with a better solution -- using good practices and design patterns. The first part is for every developer who knows C# language basics - it will show some basic mistakes and techniques to make code readable like a book. The advanced part is for developers who have at least a basic understanding of design patterns -- it will show completely clean, unit testable code.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Ireland Ireland
Passionate, Microsoft Certified Software Developer(Senior),
having Masters Degree in Information Technology.

Comments and Discussions