+ All Categories
Home > Technology > Wordpress version control

Wordpress version control

Date post: 12-Nov-2014
Category:
Upload: david-doolin
View: 1,893 times
Download: 0 times
Share this document with a friend
Description:
 
Popular Tags:
18
© 2011, Inventium Systems dool.in Version Control for the Uninitiated 1 Tuesday, May 31, 2011 6:00 PM Automattic Lounge 711 The Embarcadero San Francisco, CA WordPress Out Of (version) Control A presentation by David M. Doolin for 1 Tuesday, May 31, 2011
Transcript
Page 2: Wordpress version control

© 2011, Inventium Systems♣ dool.in

Bona Fides

2

• Who am I?

• Consulting: Interdisciplinary science and engineering software development.

• Inventium Systems: hibernating.

• Website In A Weekend: Pivoting out of internet-space into local-space; working with Tech Liminal, Oakland.

• Landing page: ♣ dool.in

I’ve used version control, starting with Concurrent Version System (CVS), since 1997. I’ve operated my own CVS repository, and I manage several remotely hosted Subversion (SVN) repositories. I have too many projects on Github.

2Tuesday, May 31, 2011

Page 3: Wordpress version control

© 2011, Inventium Systems♣ dool.in

Quick overview

• What is version control?

• Why you need version control.

• Version control tools Subversion and Git.

• Learning version control.

3

All this in 12 minutes or less!

Disclaimer: this presentation was designed for entertainment purposes only, and abounds in vague generalizations, spurious analogies and metaphors which don’t. Use common sense. Verify the information in this presentation from original sources. Do not cite. Thank you.

3Tuesday, May 31, 2011

Page 4: Wordpress version control

© 2011, Inventium Systems♣ dool.in

What is version control?

• A suite of software methodologies.

• Keeps track of changes in files. Forever.

• Promotes collaboration between people across time and space.

• A philosophy for software engineering.

4

IMPORTANT: Version control is its own thing

No metaphor, analogy, figure of speech, long winded explanation or slide deck can adequately convey modern version control. You have to do it for yourself.

4Tuesday, May 31, 2011

Page 6: Wordpress version control

© 2011, Inventium Systems♣ dool.in

Why use version control?

• Collaboration with yourself & others across time.

• Collaboration with yourself & others across space.

• Automatic revisioning. You don’t have to dream up (and remember) some hair-brained scheme for organizing revisions of all your files. (“What was the name of that last file?”)

6

"It's a good idea." - Sarah Allen

6Tuesday, May 31, 2011

Page 7: Wordpress version control

© 2011, Inventium Systems♣ dool.in

Version Control - What you need to know

• Version control is leverage for collaboration. People can easily work separated by geography and time zone.

• Leverage works 2 ways...

• Positive leverage: A good team becomes excellent. An excellent team becomes phenomenal.

• Negative leverage: Teams with problems may find those problems getting worse via version control.

• Communication is key: Version control enhances collaborator’s ability to communicate.

7

Version control does NOT replace communicationVersion control is not magic pixie dust.

7Tuesday, May 31, 2011

Page 11: Wordpress version control

© 2011, Inventium Systems♣ dool.in

Jazz lover’s guide to Git versus SVN

• SVN Closed hole flute: Easier to play, sound quality good. Not as cool.

• Git Open hole flute: Harder to play, more flexible (microtones, glissados, etc), sound quality superb. Ineffably cooler.

11

“Yes, but how does git feel...?”

11Tuesday, May 31, 2011

Page 13: Wordpress version control

© 2011, Inventium Systems♣ dool.in

Some pros and cons

13

Pros Cons

SVN

• Branching (subtree checkout) remotely is easier.

• Easier to organize unrelated projects.• Handles large numbers of unrelated

projects with ease.• Only commit branch you’re working on.

• Global commits.• Centralized repository.• More prone to conflicts.• Easier to bork local checkout.

Git

• Local commits; reduces conflicts.• Deployment can be trivial, host git repo on

server, commit and push. Eliminates rsync.• Handles large complicated projects with

ease. (Designed for Linux kernel dev.)• Nacin, Jaquith, Mall, etc.

• Project promiscuity.• Must commit whole tree.• Difficult to check out subtree

(this is a problem for WP theme and plugin development).

• Cannot commit stub (empty) directory.

SVN evolved. Git was designed.

13Tuesday, May 31, 2011

Page 14: Wordpress version control

© 2011, Inventium Systems♣ dool.in

Git Project Proliferation (not that cute)

14

Git’s distributed repository model can induce large numbers of small projects.

This is surprisingly inconvenient for WordPress plugin and theme development.

Be wary of project overindulgence. Starting with Git, It all seems so innocent

Creating projects is simple, easy & fun!But projects seem to proliferate :(

14Tuesday, May 31, 2011

Page 15: Wordpress version control

© 2011, Inventium Systems♣ dool.in

Which one is better, Git or Subversion?

15

1st: There is no one-size-fits-all tool which is “better” than every other tool.

2d: Git and Subversion are going to be around a long, long time. The closer you are to developers, the more likely you’re going to learn both anyway.

3d: If your main interest is WordPress development, learn Subversion now. Yesterday. Seriously. Then learn Git.

4th: If you’re riding Rails, you probably already know you need to learn Git. Mandatory.

My opinion: if you work with information, you won’t escape learning version control. It’s inevitable.

15Tuesday, May 31, 2011

Page 16: Wordpress version control

© 2011, Inventium Systems♣ dool.in

Bruce Lee’s Kung Fu guide to learning version control

1. Novice stage: At first, version control is just “version control.” Get a repository, make some changes, save the changes.

2. Practitioner stage: Committing, pushing, rebasing, rolling back, branching, merging, moving, renaming... the pros and cons of a dozen systems to explore.

3. Mastery stage: Version control is just version control. It’s easy and fun!

16

Image courtesy Wikipedia

Don’t wait. Start learning version control now.

16Tuesday, May 31, 2011


Recommended