FOUNDATION VERSION CONTROL FOR WEB DEVELOPERS
Copyright 2012 by Chris Kemper and Ian Oxley
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. Exempted from this legal reservation are brief excerpts in connection with reviews or scholarly analysis or material supplied specifically for the purpose of being entered and executed on a computer system, for exclusive use by the purchaser of the work. Duplication of this publication or parts thereof is permitted only under the provisions of the Copyright Law of the Publisher's location, in its current version, and permission for use must always be obtained from Springer. Permissions for use may be obtained through RightsLink at the Copyright Clearance Center. Violations are liable to prosecution under the respective Copyright Law.
ISBN-13 (pbk): 978-1-4302-3972-7
ISBN-13 (electronic): 978-1-4302-3973-4
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, or images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark.
The use in this publication of trade names, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein.
Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail .
For information on translations, please e-mail .
Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use. eBook versions and licenses are also available for most titles. For more information, reference our Special Bulk SaleseBook Licensing web page at www.apress.com/bulk-sales
.
Any source code or other supplementary materials referenced by the author in this text are available to readers at www.apress.com
. For detailed information about how to locate your book's source code, go to www.apress.com/source-code/
.
Credits
President and Publisher: Paul Manning Lead Editor: Louise Corrigan Technical Reviewer: Tom Barker Editorial Board: Steve Anglin, Mark Beckner, Ewan Buckingham, Gary Cornell, Morgan Ertel, Jonathan Gennick, Jonathan Hassell, Robert Hutchinson, Michelle Lowman, James Markham, Matthew Moodie, Jeff Olson, Jeffrey Pepper, Douglas Pundick, Ben Renow-Clarke, Dominic Shakeshaft, Gwenan Spearing, Matt Wade, Tom Welsh | Coordinating Editor: Tracy Brown Copy Editors: Elizabeth Berry, Tiffany Taylor Compositor: Mary Sudul Indexer: SPi Global Artist: SPi Global Cover Image Artist: Corn van Dooren Cover Designer: Anna Ishchenko |
To my family, friends, and Lauren
Chris Kemper
To Rachel, Stewart, and Adam
Ian Oxley
Contents at a Glance
Contents
About the Authors
Chris Kemper was born and bred in the North of England. Growing up taking computers apart and putting them back together, it's no surprise he got into web development in his early teens. Graduating in 2008, Chris secured a job at one of the leading web design agencies in the North East, building awesome Drupalpowered websites for some big names.
Moonlighting as a freelance web developer, Chris always stays on the cutting edge of web developmentwhich means he also has a lot of big ideas and not enough time to develop them.
On the rare occasion Chris isn't on his MacBook, he can be found exploring the realms of Skyrim and beyond, travelling the country for various web conferences, and drinking fine ales.
You can catch Chris on Twitter at @ChrisDKemper or by checking out his personal site at www.chrisdkemper.co.uk
.
Ian Oxley is a web developer who's been writing front-end and back-end code professionally since 2004. He's based in Newcastle-upon-Tyne, England, and can often be found attending, and on occasion speaking at, local user groups and meetups. When he's not programming, Ian enjoys playing the guitar, photography, badminton, and spending time with his wife and family.
About the Technical Reviewer
Tom Barker is a software engineer, solutions architect, and technical manager with over 13 years of experience working with ActionScript, JavaScript, Perl, PHP, and the Microsoft .Net Framework. Currently he is the manager of web development at Comcast Interactive Media where he leads the craftsmen responsible for www.xfinity.com
and www.xfinitytv.com
. He is also an adjunct professor at Philadelphia University, where he has been teaching undergraduate and graduate courses on web development since 2003. When not working, teaching, or writing, Tom likes to spend time with his family, read, and play video games until very early in the morning.
About the Cover Image Artist
Corn van Dooren designed the front cover image for this book. After taking a brief hiatus from friends of ED to create a new design for the Foundation series, Corn worked at combining technological and organic forms with the results now appearing on this and other book covers.
Corn spent his childhood drawing on everything at hand, and then he began exploring the infinite world of multimediaHis journey of discovery hasn't stopped since! His mantra has always been, The only limit to multimedia is the imagination, a saying that keeps him constantly moving forward.
Corn works for many international clients, writes features for multimedia magazines, reviews and tests software, authors multimedia studies, and works on many other friends of ED books. You can see more of his work and contact him through his website at: www.cornevandooren.com
.
Acknowledgments
To all my friends who have offered kind words to me at times of stress, I thank you. My mam practically bullied her way in here, but I love her all the same! My brother Kane also gets a mention, because of his support, and helping me suck less at Battlefield. To my dad, who would quite happily listen to me talk about the book without any knowledge of what the hell I was talking about, thanks! Phil Sherry gets a big mention, as he's always offered words of advice (although most of them look like $!#@) and he got me in touch with the right people to start this whole process off. I owe you a beer, my good man. Craig Tweedy gets a mention, mainly because he's Craig Tweedy. Ian Oxley also has to get a shout out, since he came and helped me out and produced two cracking chapters for the book in the process. Cheers, man! Finally, I have to thank my partner, Lauren Thompson, for putting up with all the late nights, stress, and pointless conversation, as well as even helping me write and proof various parts of the book; you get hugs and a Nandos.