The Drupal community has defined a set of coding standards and best practices that should be adhered to whenever you're writing code for Drupal. These standards provide a set of rules for how your code should be formatted, whether you should use tabs or spaces, some guidelines around naming conventions, and the location of files. These coding standards ensure consistency in code throughout the project, make it easy for developers to move around from one sub-section to another without having to re-learn how to read the code, and most of all help us to spend our time debating the functionality and logic contained in the code and not the semantics of whitespace. You can simply point to the rules and say, "This is what we agreed on."
This tutorial will cover the PHP coding standards for Drupal, as well as provide some information about why coding standards are important and where you can go to learn more about the coding standards. These standards are Drupal version agnostic and the same rules apply to all versions of Drupal. Once you've completed the tutorial you'll probably want to head over to https://www.drupal.org/coding-standards where the official documentation of the coding standards lives. That page should be considered the canonical source for any questions about the Drupal coding standards.
We're not going to cover every little detail, but we'll make sure and go over the things you're likely to encounter no a daily basis when writing code. By the end of this tutorial you should be ready to start applying the Drupal PHP coding standards to your own custom PHP code and to all your contributions.
drupal console Understanding the Drupal Coding Standards | |
| 20 Likes | 20 Dislikes |
| 2,358 views views | 8.87K followers |
| Film & Animation | Upload TimePublished on 12 Feb 2015 |
Related keywords
coding standards php,training day,coding standards google,training shed,training significado,drupal bootstrap,training with hinako,coding standards angular,drupal tutorial,training camp,training que es,coding standards example,training wheels,http://drupal.org,coding standards checklist,training gym,drupal شرح,coding standards and best practices,drupal developer,coding standards sql,drupal php,drupal commerce,training shoes,training point,drupal 7 exploit,coding standards template,drupal modules,training force,training center garmin,coding standards wiki,training peaks,training deporte,training center,drupal download,coding standards java,drupal 7,coding standards scala,drupal 8,drupal themes,training mask,coding standards javascript,drupal themes free,coding standards meme,drupal 7 download,drupal theme,training wheels lyrics,drupal core,training me,training wheels letra,coding standards c#,coding standards tools,drupal exploit,training traduccion,coding standards document template,coding standards react,drupal 8 download,coding standards document,coding standards python,coding standards .net,
Không có nhận xét nào:
Đăng nhận xét