Mastering The Faster Web with PHP, MySQL, and JavaScript
Develop state-of-the-art web applications using the latest
web technologies
Andrew Caya
BIRMINGHAM - MUMBAI
Mastering The Faster Web with PHP, MySQL, and JavaScript
Copyright 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Commissioning Editor: Amarabha Banerjee
Acquisition Editor: Shweta Pant
Content Development Editor: Mohammed Yusuf Imaratwale
Technical Editor: Akhil Nair
Copy Editor: Safis Editing
Project Coordinator: Hardik Bhinde
Proofreader: Safis Editing
Indexer: Pratik Shirodkar
Graphics: Jason Monteiro
Production Coordinator: Aparna Bhagat
First published: June 2018
Production reference: 1060618
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78839-221-1
www.packtpub.com
I dedicate this book to the One who has made everything new by His sacrifice and
has given me everything that I have in my life.
To my wife, Mylne, and my son, Jean-Thomas, whom I love very much,
for their relentless support and understanding.
To my extended family, Andre-Anne, Genevive, Marie-Rose and Augustin,
for their trust and confidence in me.
To my mother, Lise, and my father, Carroll, may he rest in peace, for everything
that they have taught and given me over the years.
To all my friends, particularly Martin, lise, Rose-Anne, and Martin,
for their patience and collaboration.
To my computer science instructors, Richard Truchon, Jean-Marie Veilleux,
Daryl Wood, and Jakub Zalas, who have made me the computer programmer that I am today,
with a very special mention to Doug Bierer, whose good mentoring and true friendship
changed my professional life forever.
mapt.io
Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content
PacktPub.com
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub.com for more details.
At www.PacktPub.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Foreword
At first glance, my initial instinct was to wonder, "why am I reading yet another book on web development?" After all, I've been in the business for so long that I've learned to say, when asked how many years of experience, over 30. What more is there to learn, right? Wrong! First of all, I'm sure deep down in your gut you'll agree that no matter how long you've been in the business, there is always something new to be learned. This is where our friend Andrew Caya comes in.
Andrew is and has been my best student. He's the only one to have attended all the courses I teach for Zend, and also to have purchased all the books and videos I've done for O'Reilly and Packt. Okay, Okay, I can almost hear you muttering to yourself that maybe the guy's crazy, has no control over his spending habits. Well not to worry: his wife has things firmly under control, and his credit cards are currently under house arrest.
So ... What a bout Andrew? Aside from the fact that he not only has a deep understanding of new and existing technologies, he's thorough and tries things out , which is a refreshing departure from many authors who "talk the talk," but do not "walk the walk."
What deeply impressed me about this book, however, and made me realize that it contains essential information for any web developer, no matter how experienced, is how Andrew has taken a deep dive not only into new technologies, but very cleverly brought to light aspects of the existing technologies as well. After reading just the first few chapters, I learned things about PHP and benchmarking that I did not realize existed, even having used such tools since their inception. Another example is found i n his last chapter, Beyond Performance . Here, Andrew offers masterful insights such as pointing out that the traditional way of viewing performance itself might be an issue, which then leads into a discussion of UI design and user perception.
In this book, Andrew presents the concepts clearly and concisely. He also shows you how to install, configure, and then put to use the various tools and techniques which, combined, will result in better web performance, that is, the Faster Web . There are plenty of screenshots where the various controls, settings, and expected outcomes are meticulously highlighted. I won't bore you with the extensive list of technologies, tools, and techniques Andrew covers, but let me tell you that there's some really exciting stuff here that will ultimately put you in charge of your website and its development.
Be honest with yourself: do you experience a pang of dread whenever the phone rings, hoping against hope that it's not another customer complaint? Do you find yourself running ragged chasing down bugs? Are you really looking forward to spending yet another weekend at the office eating cold pizza? Andrew's book will turn your life around and "put you back in the driver's seat," as the saying goes. If you apply the concepts and use the tools he describes, you might even start enjoying your job and be able to use all the unused paid leave you've accumulated. Treat yourself to this book and enjoy your day in the sun!
Doug Bierer
unlikelysource.com
P.S. If you're like me and like to poke fun at the hard-core "Test Driven Development" nerds, have a look at Andrew's chapter entitled Javascript and "Danger-Driven Development".