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

Chapter 2. Writing Composable Code

In this chapter, we'll explore the concept of composable code. We start by defining the term. We then examine composable and non-composable examples to better understand what composability is, and improve code by refactoring. We will learn about important techniques to maximize composability, such as predicates, list comprehensions, contracts, closures, and docstrings. We put these techniques to work by building a library to convert a hierarchy of transforms into joints. After that, we compose this library into a configurable higher-level tool for creating characters. Finally, we will look at some issues and solutions surrounding PyMEL, composability, and performance.

主站蜘蛛池模板: 宜兰市| 东城区| 宁晋县| 习水县| 蓝山县| 柳林县| 岑溪市| 莎车县| 石楼县| 万载县| 麻城市| 南通市| 六安市| 洪湖市| 海原县| 桐城市| 隆尧县| 土默特右旗| 眉山市| 施秉县| 涞源县| 浪卡子县| 弥勒县| 内江市| 宜都市| 抚松县| 灵丘县| 垫江县| 云和县| 琼结县| 建湖县| 福建省| 湄潭县| 扎鲁特旗| 大厂| 兰溪市| 乌鲁木齐县| 江北区| 西乌珠穆沁旗| 临沧市| 涞源县|