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

  • Clean Code in C#
  • Jason Alls
  • 140字
  • 2021-06-18 18:28:12

Summary

In this chapter, you have seen how functional programming can improve the safety of your code by not modifying the state, which can give rise to bugs, especially in multithreaded applications. By keeping methods small with meaningful names and no more than two parameters, you have seen how much cleaner your code is and easier to read. You have also seen how we can remove duplication in our code and the benefits of doing so. Code that is easy to read is easier to maintain and extend than code that is hard to read and decipher!

We will now move on and look at the topic of exception handling. In the next chapter, you will learn how to use exception handling appropriately, write your own custom C# exceptions that provide meaningful information, and write code that avoids raising NullPointerExceptions.

主站蜘蛛池模板: 贡山| 汾阳市| 新平| 杂多县| 宁陕县| 凤凰县| 灵台县| 沂水县| 南木林县| 潍坊市| 大化| 黄梅县| 沙湾县| 高尔夫| 蛟河市| 永清县| 华宁县| 新密市| 佛学| 湾仔区| 佛教| 三江| 北流市| 阿克苏市| 托里县| 龙口市| 略阳县| 万盛区| 凯里市| 邵武市| 马关县| 南陵县| 裕民县| 海伦市| 永丰县| 苍溪县| 凌海市| 枣强县| 贵德县| 梁河县| 兴仁县|