Coder Presentation

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    Coder Presentation - Presentation Transcript

    1. Barcelona DrupalCon Code Review is not just for Standards
    2. (INSERT PICTURE OF BARCELONA) (maybe Gaudi House on Catalunya) Code Review is not just for Standards By Doug Green [email_address] [email_address]
    3. http://drupal.org/project/coder Code Review is not just for Standards
      • Coder Module
      • History
      • Developer Module, built for you (and me)
      • What does it do?
      • Credit code-style.pl
      • Credit contributors: webchick, nancyw
      • Style Review
      • Upgrade Reviews (4.7.x, 5.x, 6.x)
      • Security Reviews
      • Performance Reviews
      • Types of Reviews
      Code Review is not just for Standards
      • Not what this talk is about
      • But some simple hints
      • Style Review
      Code Review is not just for Standards
      • $var .' followed by a quote'
      • 'quote followed by a '. $var
      • while ($space_before_left_paren)
      • while ($space_after_right_paren) {
      • indent 2 spaces, don't use tabs
      • don't end with a ?>
      • don't use camelCase or CamelCase
      • Common Style Problems
      • See http://drupal.org/node/318
      Code Review is not just for Standards
      • FAPI
      • Menu
      • Schema API
      • Info File changes
      • ... much much more ...
      • Drupal 5.x -> 6.x
      • See http://drupal.org/node/114774
      Code Review is not just for Standards
      • Run from Drupal 5
      • Run from Drupal 6 (recommended)
      • Catches Quite a Bit...
      • But it's just a tool that makes suggestions
      • You are Smarter than Coder
      • Drupal 5.x -> 6.x Upgrade Review
      • We've got 10 minutes...
      • Let's Upgrade a Module Now!
      Code Review is not just for Standards
      • Coder Engine
      • What is a Review?
      • What is a Rule?
      • What is a Regular Expression?
      • How does Coder Work?
      Code Review is not just for Standards
      • regex
      • grep, grep_invert, callback
      • Rule Types
      Code Review is not just for Standards
      • php (default)
      • html
      • quote
      • doublequote
      • comment
      • all
      • Rule Sources
      Code Review is not just for Standards
    4. array( '#type' => 'regex', '#value' => '_form_alters*($', ... ),
      • Example Rule:
      • See http://drupal.org/node/144172
      Code Review is not just for Standards
    5. array( '#type' => 'regex', '#function' => '_menu$', '#value' => '$items[]s*=', ... ),
      • Another Example Rule:
      • See http://drupal.org/node/144172
      Code Review is not just for Standards
    6. array( '#type' => 'regex', '#value' => 'global $locale', ... ),
      • One More Example:
      • See http://drupal.org/node/144172
      Code Review is not just for Standards
      • Coderis only as good as the Rules
      • Lot's of contributors
      • But 1 Developer (so far)
      • Please submit ideas
      • Please submit Review/Rules Patches
      • You can do it!
      • Really :)
      • It's your tool, and I need help
      • Really !
      • Why All the Examples Doug?
      Code Review is not just for Standards
      • Security
      • Performance
      • Potential
      Code Review is not just for Standards
    7. [email_address] http://drupal.org/project/coder Code Review is not just for Standards

    douggreendouggreen, 2 years ago

    custom

    967 views, 1 favs, 0 embeds more stats

    More Info

    © All Rights Reserved

    Go to text version
    • Total Views 967
      • 967 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 1
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as innappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel

    Categories

    Tags