- Practical Maya Programming with Python
- Robert Galanakis
- 105字
- 2021-09-03 10:05:25
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.
推薦閱讀
- Python for Secret Agents:Volume II
- 架構不再難(全5冊)
- Learning Bayesian Models with R
- Cassandra Design Patterns(Second Edition)
- Java 9模塊化開發:核心原則與實踐
- Elasticsearch Server(Third Edition)
- SQL Server 2016數據庫應用與開發
- Integrating Facebook iOS SDK with Your Application
- Terraform:多云、混合云環境下實現基礎設施即代碼(第2版)
- Scratch3.0趣味編程動手玩:比賽訓練營
- Rust游戲開發實戰
- 計算機應用基礎(第二版)
- Modular Programming with JavaScript
- Flink入門與實戰
- Visual FoxPro數據庫程序設計