[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-31。"],[],[],null,["# Looker cookbook: Maximizing code reusability with DRY LookML\n\nThis cookbook contains a series of use cases (referred to in the Looker cookbooks as \"recipes\") for applying DRY (don't repeat yourself) principles to your LookML development, which can help you in the following areas:\n\n- Reduce duplicated code: Make your projects more manageable and less error-prone by writing DRY LookML code that is easier to understand, modify, and maintain.\n- Create reusable values and logic: Define values that can be used throughout your projects so that you only have to update them in one place if there is a change.\n- Simplify complex logic: Break code down into smaller, reusable parts.\n- Improve the organization and readability of your models and projects: Make code easier for other LookML developers to read, understand, and modify LookML.\n\nWhether you are new to LookML or an experienced LookML developer, this cookbook provides you with recipes and techniques that will help you write clean and effective code now that will save you time and effort in the future.\n\nRecipes and applications\n------------------------\n\nAll the examples in this cookbook are written for LookML developers and require [permissions to develop LookML](/looker/docs/admin-panel-users-roles#permission_sets)."]]