mad development

Post on 27-Jun-2015

355 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

TOWARDS A BETTER DEVELOPMENT WORKFLOW

Eric Andrew Lewis

Lead Developer at

Small-time core contributor

Brooklyn-based, greater Philly-native

WHAT I TALK ABOUT WHEN I TALK ABOUT DEVELOPMENT

Code creation, not design. Creation of adam?

WORKFLOW IS PARAMOUNT

WORKFLOW IS A DIALOG

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

Workflow is a dialog with your peers.

LOCAL DEVELOPMENT ( __ AMP )

YOUR CODE EDITOR

BASIC CODE EDITORS

IDEs

*  

vim *  

and pseudo-IDEs

CONNECTING WITH YOUR CODE BASE

Easy access to WordPress core WordPress core function suggestion

DIAGRAM MODELING OF CODE

Plan out your code before you write.

DIAGRAM MODELING OF CODE

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

LINTING

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

LINTING

Preprocess your code for syntax errors from your editor.

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

SNIFFING

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

$your_code = 'elegant'; }  

Scan code for violations of a coding standard.

CODE FIXER

Fix coding standards violations from your editor.

Kinda lame.

XDEBUG

Heavy artillery for debugging

PHP extension

XDEBUG

Code profiling (code efficiency testing)

PHP extension

XDEBUG

Stack traces on errors

PHP extension

XDEBUG

Breakpoint Analysis

PHP extension

VERSION CONTROL

SVN, GIT, Hosted Solutions

Q & A

top related