- Shopping Bag ( 0 items )
Posted July 14, 2008
Butcher teaches serious coding within Drupal 6. This latest version of Drupal has been heavily built out, with the key ideas of modules and themes. One slight dissonant note that the book quickly addresses is the overt lack of object orientedness. Due to the corresponding absence in the underlying PHP version when Drupal 6 was first being put together. So you are relegated to writing procedural code in Drupal. This may not be so bad for several reasons. First, if you are unfamiliar with OO, then its lack is moot. Second, the book does describe several OO aspects that have been implemented, so OO programmers can take advantage of this. Third, OO typically is better than procedural (easier to maintain) for long programs. The extended code examples of the book seem perfectly adequate as normal function calls. The book does not seem to make the following explicit. But as the latest PHP is now fully OO, future versions of Drupal might indeed also be so. There are some nice features of Drupal 6. Like the administration interface for configuring block placement, which acts like a WYSIWIG editor. So you can see for yourself how the webpage would look as you do the configuring. One slight caveat is the unclosed opening PHP tag for a module file. There is no corresponding closing PHP set. (Yuk!) It turns out that there is a good reason for this. So you'll just have to live with it. The analog of CSS within Drupal is themes. Used to factor out a common look and feel across a set of dynamically generated pages. Here is indeed a fair amount of complexity. But fairly well minimised behind APIs and some coding guidelines.Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.