advertisement

Coder Presentation

50 %
50 %
advertisement
Information about Coder Presentation

Published on September 24, 2007

Author: douggreen

Source: slideshare.net

advertisement

Barcelona DrupalCon Code Review is not just for Standards

(INSERT PICTURE OF BARCELONA) (maybe Gaudi House on Catalunya) Code Review is not just for Standards By Doug Green [email_address] [email_address]

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

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

Style Review

Upgrade Reviews (4.7.x, 5.x, 6.x)

Security Reviews

Performance Reviews

Types of Reviews

Not what this talk is about But some simple hints Style Review Code Review is not just for Standards

Not what this talk is about

But some simple hints

Style Review

$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

$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

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

FAPI

Menu

Schema API

Info File changes

... much much more ...

Drupal 5.x -> 6.x

See http://drupal.org/node/114774

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

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!

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

Coder Engine

What is a Review?

What is a Rule?

What is a Regular Expression?

How does Coder Work?

regex grep, grep_invert, callback Rule Types Code Review is not just for Standards

regex

grep, grep_invert, callback

Rule Types

php (default) html quote doublequote comment all Rule Sources Code Review is not just for Standards

php (default)

html

quote

doublequote

comment

all

Rule Sources

array( '#type' => 'regex', '#value' => '_form_alters*($', ... ), Example Rule: See http://drupal.org/node/144172 Code Review is not just for Standards

Example Rule:

See http://drupal.org/node/144172

array( '#type' => 'regex', '#function' => '_menu$', '#value' => '$items[]s*=', ... ), Another Example Rule: See http://drupal.org/node/144172 Code Review is not just for Standards

Another Example Rule:

See http://drupal.org/node/144172

array( '#type' => 'regex', '#value' => 'global $locale', ... ), One More Example: See http://drupal.org/node/144172 Code Review is not just for Standards

One More Example:

See http://drupal.org/node/144172

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

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?

Security Performance Potential Code Review is not just for Standards

Security

Performance

Potential

[email_address] http://drupal.org/project/coder Code Review is not just for Standards

Add a comment

Related pages

Presentation | coders corner

Beiträge über Presentation geschrieben von oliverfunke ... It isn’t that difficult to find the right structure for a lecture or a presentation.
Read more

Medical Coding | Academics | Presentation College

Discover the Medical Coding department available with Presentation College as well as many other academic departments.
Read more

Medical Billing & Coding PowerPoint Presentation Template ...

Make a great-looking medical billing & coding powerpoint presentation. Get design ideas & examples. Download layouts with photos & artwork, edit & print!
Read more

Topcoder Slide Presentation: Application Visual Design ...

NASA ISS Food Intake Tracker (FIT) iPad App - Infographic. NASA used crowdsourcing challenges to ideate, design, prototype, and develop a sophisticated ...
Read more

Windows Presentation Foundation (WPF) - Home

Windows Presentation Foundation (WPF) home. source code. downloads. documentation. discussions. issues. people. license Page Info; Change History (all ...
Read more

PowerPoint Presentation - LS Coding & Education LLC

Subcategories of a Certified Professional Coder: Outpatient Hospital. Inpatient Hospital. Payer. Risk Adjustment. Associate Degree Options: Insurance ...
Read more

PowerPoint Presentation - Colorado Medical Society

PowerPoint Presentation Author: CMS Last modified by: Alfano Created Date: 8/17/2013 11:56:50 PM Document presentation format: On-screen Show (4:3) Company:
Read more

reveal.js – The HTML Presentation Framework

Reveal.js The HTML Presentation Framework Hello There. reveal.js enables you to create beautiful interactive slide decks using HTML. ... Not a coder? Not a ...
Read more

CoderDojo

CoderDojo is a worldwide movement of free, volunteer-led, community-based programming clubs for young people. Anyone aged seven to seventeen can visit a ...
Read more