- 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.
推薦閱讀
- Mastering NetBeans
- 程序設(shè)計(jì)與實(shí)踐(VB.NET)
- C++ Builder 6.0下OpenGL編程技術(shù)
- PHP+MySQL+Dreamweaver動(dòng)態(tài)網(wǎng)站開發(fā)實(shí)例教程
- C++ 從入門到項(xiàng)目實(shí)踐(超值版)
- Python機(jī)器學(xué)習(xí)編程與實(shí)戰(zhàn)
- ADI DSP應(yīng)用技術(shù)集錦
- Learning Node.js for .NET Developers
- 遠(yuǎn)方:兩位持續(xù)創(chuàng)業(yè)者的點(diǎn)滴思考
- HTML+CSS+JavaScript網(wǎng)頁制作:從入門到精通(第4版)
- Python編程基礎(chǔ)教程
- ASP.NET Core and Angular 2
- Microsoft Dynamics GP 2013 Cookbook
- Learning iOS Penetration Testing
- ASP.NET本質(zhì)論