Working with WordPress in a Team Environment

49
Making the jump to GIT and IDE’s (aka, playing nicely with others)

description

Working with WordPress in a Team Environment

Transcript of Working with WordPress in a Team Environment

Page 1: Working with WordPress in a Team Environment

Making the jump to GIT and IDE’s

(aka, playing nicely with others)

Page 2: Working with WordPress in a Team Environment

What are wetalking about?

•Integrated Development Environments

•GIT and Subversion

•Working as a team

•Coding Standards

Page 3: Working with WordPress in a Team Environment

Who is this for?

•Intermediate developers;

•Team players;

•Public coding samples;

Page 4: Working with WordPress in a Team Environment

IDE’s

Making your job easier.

Page 5: Working with WordPress in a Team Environment

TextEdit is not an IDE

Page 6: Working with WordPress in a Team Environment

Example of an IDE

Page 7: Working with WordPress in a Team Environment

Common Features of an IDE

•Code highlighting & variable identification

•Debugging

•Project Management

•Deployment Tools

•Function tips

Page 8: Working with WordPress in a Team Environment

Code highlighting

Page 9: Working with WordPress in a Team Environment

Debugging

Page 10: Working with WordPress in a Team Environment

Project Management

Page 11: Working with WordPress in a Team Environment

Function Helper

Page 12: Working with WordPress in a Team Environment

Function Helper

Page 13: Working with WordPress in a Team Environment

Deployment

•FTP

•Version Control Software

Page 14: Working with WordPress in a Team Environment

Version Control

Working in a team environment.

Page 15: Working with WordPress in a Team Environment

SVN

Subversive Tendencies.

Page 16: Working with WordPress in a Team Environment

Linux SVN

Page 17: Working with WordPress in a Team Environment

Visual SVN

Page 18: Working with WordPress in a Team Environment

Visual SVN with DIFF

Page 19: Working with WordPress in a Team Environment

GIT

A childish person with no manners.

Page 20: Working with WordPress in a Team Environment
Page 21: Working with WordPress in a Team Environment

SVN vs. GIT

Why choose one?

Page 22: Working with WordPress in a Team Environment

SVN vs. GIT

•GIT is localized, SVN is centralized;

•SVN only stores files, GIT stores file data;

•GIT is simply better;

Page 23: Working with WordPress in a Team Environment

Then why use SVN?

•SVN is what WordPress.org uses;

•SVN is what WordPress.com uses;

•SVN is old school, no reason to change;

Page 24: Working with WordPress in a Team Environment

Working in a team.

How to play well with others.

Page 25: Working with WordPress in a Team Environment

Working together

•Agree on a versioning control solution;

•Agree on an IDE preference;

Page 26: Working with WordPress in a Team Environment

Team Environments

Step One: Developers Workspace

Page 27: Working with WordPress in a Team Environment

Developers Workspace

•MAMP or LAMP setup as a local server;

•IDE, Versioning Control, and environments;

Page 28: Working with WordPress in a Team Environment

The Process (Step 1)

Does it work?

No.

Yes.

Page 29: Working with WordPress in a Team Environment

Team Environments

Step Two: The Team Workspace

Page 30: Working with WordPress in a Team Environment

the i in team.

Page 31: Working with WordPress in a Team Environment

Developers Server

•Secure working environment;

•Version control access only;

•Shares among developers;

Page 32: Working with WordPress in a Team Environment

The Process (Step 2)

Does it work?

No.

Yes.

Page 33: Working with WordPress in a Team Environment

Team Environments

Step Three: The Stakeholder Server

Page 34: Working with WordPress in a Team Environment

Developers Server

•Secure working environment;

•Version control access only;

•Shared among the stakeholders;

•Mimics the live server;

Page 35: Working with WordPress in a Team Environment

The Process (Step 3)

Are you happy?

Yes.

Page 36: Working with WordPress in a Team Environment

Team Environments

Step Four: The Live Server

Page 37: Working with WordPress in a Team Environment

Live Server

•Public environment;

•Version control access only;

Page 38: Working with WordPress in a Team Environment

The Process (Step 4)

Page 39: Working with WordPress in a Team Environment

The Process Developer

Dev Server

Test Server

Live Server

Page 40: Working with WordPress in a Team Environment

Coding Standards

How to play well with others code.

Page 41: Working with WordPress in a Team Environment

Google the phrase:

WordPressCoding

Standards

Page 42: Working with WordPress in a Team Environment

WP Coding Standards

•Single vs. Double Quotes

•Indenting and Formatting Code

•Brace Style & Spacing

•Semantic Coding

•Readability vs. Easy of Use

•General Best Practices

Page 43: Working with WordPress in a Team Environment

WP Coding Standards

•Single quotes are used when no variables are present in the string;

•Double quotes process the contents;

Page 44: Working with WordPress in a Team Environment

WP Coding Standards

•Single quotes are used when no variables are present in the string;

$x = ‘Hello’.$name;

•Double quotes process the contents;

$x = “Hello $name”;

Page 45: Working with WordPress in a Team Environment

Formatting Code

Page 46: Working with WordPress in a Team Environment

Spacing Your Code

Page 47: Working with WordPress in a Team Environment

Capturing Errors

Page 48: Working with WordPress in a Team Environment

Semantic Naming

Page 49: Working with WordPress in a Team Environment

Standardizing