CHAPTER 21Development Best Practices

In this chapter, you'll find all the little coding tips and best practices that'll make you an upstanding Drupal citizen and help keep your forehead separated from the keyboard. I'll begin by introducing Drupal's coding standards, then show you how to create documentation that will help other developers understand your code. I will help you find things quickly in Drupal's codebase, introduce version control, walk you through module maintenance, and wrap up by discussing debugging and profiling your code.

Coding Standards

The Drupal community has agreed that its codebase must have a standardized look and feel to improve readability and make diving in easier for budding developers. Developers of contributed ...

Get Pro Drupal Development, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.