官术网_书友最值得收藏!

  • Clean Code in C#
  • Jason Alls
  • 202字
  • 2021-06-18 18:28:09

Classes, Objects, and Data Structures

In this chapter, we will look at organizing, formatting, and commenting on classes. We will also look at writing clean C# objects and data structures that respect the Law of Demeter. In addition, we will look at immutable objects and data structures and the interfaces and classes that define immutable collections in the System.Collections.Immutable namespace.

We will cover the following broad topics:

  • Organizing classes
  • Commenting for document generation
  • Cohesion and coupling
  • The Law of Demeter
  • Immutable objects and data structures

As you progress through this chapter, you will learn the following skills:

  • How to effectively organize your classes using namespaces.
  • Your classes will become smaller and more meaningful as you learn to program them with only a single responsibility.
  • When it comes to writing your own APIs, you will be able to provide good developer documentation by providing comments that aid document generation tools.
  • Any programs you write will be easy to modify and extend due to their high cohesion and low coupling.
  • Finally, you will be able to apply the Law of Demeter and write and use immutable data structures.

So, let's start by looking at how we can effectively organize our classes by using namespaces.

主站蜘蛛池模板: 平原县| 普定县| 桃园市| 白城市| 阿尔山市| 天台县| 北碚区| 肥城市| 临沂市| 祁阳县| 武汉市| 洛南县| 商水县| 丹阳市| 定边县| 衢州市| 灵川县| 申扎县| 响水县| 如皋市| 泸州市| 梅河口市| 巩留县| 富川| 泾阳县| 吐鲁番市| 西宁市| 本溪市| 河源市| 黑河市| 五台县| 庆阳市| 凤凰县| 道真| 太谷县| 武功县| 任丘市| 胶南市| 仁怀市| 焉耆| 阳曲县|