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

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.

主站蜘蛛池模板: 二手房| 汉川市| 博兴县| 浪卡子县| 凤山县| 天祝| 镇远县| 东乡| 剑河县| 洪湖市| 余江县| 广德县| 新民市| 克东县| 策勒县| 新丰县| 沙河市| 泸定县| 新蔡县| 富裕县| 正安县| 宝清县| 江华| 汝阳县| 土默特右旗| 井陉县| 沂南县| 隆昌县| 灵寿县| 河西区| 建阳市| 凌云县| 江口县| 涟源市| 鹤庆县| 贡嘎县| 平度市| 新龙县| 锦屏县| 德昌县| 资源县|