mad development

26
TOWARDS A BETTER DEVELOPMENT WORKFLOW

Upload: eric-lewis

Post on 27-Jun-2015

355 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Mad development

TOWARDS A BETTER DEVELOPMENT WORKFLOW

Page 2: Mad development

Eric Andrew Lewis

Lead Developer at

Small-time core contributor

Brooklyn-based, greater Philly-native

Page 3: Mad development

WHAT I TALK ABOUT WHEN I TALK ABOUT DEVELOPMENT

Code creation, not design. Creation of adam?

Page 4: Mad development

WORKFLOW IS PARAMOUNT

Page 5: Mad development

WORKFLOW IS A DIALOG

A collection of tricks, accumulated piecemeal. Small improvements over time.

Workflow is a dialog with your peers.

Page 6: Mad development

LOCAL DEVELOPMENT ( __ AMP )

Page 7: Mad development

YOUR CODE EDITOR

Page 8: Mad development

BASIC CODE EDITORS

Page 9: Mad development

IDEs

*  

vim *  

and pseudo-IDEs

Page 10: Mad development

CONNECTING WITH YOUR CODE BASE

Easy access to WordPress core WordPress core function suggestion

Page 11: Mad development

DIAGRAM MODELING OF CODE

Plan out your code before you write.

Page 12: Mad development

DIAGRAM MODELING OF CODE

Page 13: Mad development

DIAGRAM MODELING OF CODE, EXAMPLE

Browser Server

Recent Messages File

All messages File

User hits enter in textarea

User sends message

AJAX POST request

WP AJAX handler function

Sanitize and save message

Page 14: Mad development

LINTING

Page 15: Mad development

Fatal Error: Call to undefined function get_psots() in index.php on line 34

Page 16: Mad development
Page 17: Mad development

LINTING

Preprocess your code for syntax errors from your editor.

Page 18: Mad development

SNIFFING

Scan code for violations of a coding standard from your editor.

Coding Standard Example: •  One space after an if statement •  Indentation rules •  Require specific syntax for commenting

Page 19: Mad development

SNIFFING

if(!$sniff){ $your_code="ugly"; } if ( $sniff ) {

$your_code = 'elegant'; }  

Scan code for violations of a coding standard.

Page 20: Mad development

CODE FIXER

Fix coding standards violations from your editor.

Kinda lame.

Page 21: Mad development

XDEBUG

Heavy artillery for debugging

PHP extension

Page 22: Mad development

XDEBUG

Code profiling (code efficiency testing)

PHP extension

Page 23: Mad development

XDEBUG

Stack traces on errors

PHP extension

Page 24: Mad development

XDEBUG

Breakpoint Analysis

PHP extension

Page 25: Mad development

VERSION CONTROL

SVN, GIT, Hosted Solutions

Page 26: Mad development

Q & A