3 options
Mastering the faster web with PHP, MySQL and JavaScript : develop state-of-the-art web applications using the latest web technologies / Andrew Caya.
- Format:
- Book
- Author/Creator:
- Caya, Andrew, author.
- Language:
- English
- Subjects (All):
- MySQL (Electronic resource).
- Web site development.
- PHP (Computer program language).
- Physical Description:
- 1 online resource (273 pages)
- Edition:
- 1st edition
- Place of Publication:
- Birmingham, England : Packt Publishing, 2018.
- System Details:
- text file
- Biography/History:
- Caya Andrew: Andrew Caya started programming computers in GW-BASIC and QBASIC in the early 90s. Before becoming a PHP developer almost 10 years ago, he did some software development in C, C++, and Perl. He is now a Zend Certified PHP Engineer and a Zend Certified Architect. He is also the creator of Linux for PHP, the lead developer of a popular Joomla extension and a contributor to many open source projects. He is currently CEO, CTO and Founder of Foreach Code Factory, an instructor at Concordia University, an author and a technical reviewer for Packt Publishing, and a loving husband and father.
- Summary:
- Make web applications run faster by using advanced PHP, SQL and JavaScript techniques About This Book Use a customized PHP stack to create efficient data-driven web applications Ensure seamless implementation of a JavaScript & HTML 5 CSS based frontend and PHP based backend. Learn about problem identification, best strategies, and UI design patterns as well to build a clean, fast web application Who This Book Is For The audience for this book would be PHP developers who have some basic knowledge of PHP programming and Web technologies. JavaScript programming knowledge is not necessary. What You Will Learn Install, confgure, and use profling and benchmarking testing tools Understand how to recognize optimizable data structures and functions to effectively optimize a PHP7 application Diagnose bad SQL query performance and discover ways to optimize it Grasp modern SQL techniques to optimize complex SQL queries Identify and simplify overly complex JavaScript code Explore and implement UI design principles that effectively enhance the performance Combine web technologies to boost web server performance In Detail This book will get you started with the latest benchmarking, profiling and monitoring tools for PHP, MySQL and JavaScript using Docker-based technologies. From optimizing PHP 7 code to learning asynchronous programming, from implementing Modern SQL solutions to discovering Functional JavaScript techniques, this book covers all the latest developments in Faster Web technologies. You will not only learn to determine the best optimization strategies, but also how to implement them. Along the way, you will learn how to profile your PHP scripts with Blackfire.io, monitor your Web applications, measure database performance, optimize SQL queries, explore Functional JavaScript, boost Web server performance in general and optimize applications when there is nothing left to optimize by going beyond performance. After reading this book, you will know how to boost the performance of any Web application and make it part of what has come to be known as the Faster Web. Style and approach The book has a step by step practical approach to developing highly efficient Web applications, with many practical and useful code snippets.
- Contents:
- Intro
- Title Page
- Copyright and Credits
- Dedication
- Packt Upsell
- Foreword
- Contributors
- Table of Contents
- Preface
- Faster Web - Getting Started
- What is the Faster Web?
- The Faster Web and performance
- Measuring the Faster Web
- Before Measuring
- Benchmark testing and profiling
- Practical prerequisites
- Understanding Apache Bench (AB)
- Understanding Siege
- Installing and configuring useful tools
- Profiling PHP - xdebug Installation and Configuration
- SQL - Speed Testing
- JavaScript - Developer Tools
- Summary
- References
- Continuous Profiling and Monitoring
- What is Blackfire.io?
- Installing and configuring Blackfire.io
- Profiling manually with Blackfire.io
- Performance testing with Blackfire.io
- Monitoring performance with the TICK Stack
- Harnessing the Power of PHP 7 Data Structures and Functions
- PHP 7 optimizations
- Strict typing
- Immutable and packed arrays
- Memory allocation of integers and floats
- String interpolation and concatenation
- Parameter references
- Identifying more possible optimizations
- Functional programming and memoization
- Reference
- Envisioning the Future with Asynchronous PHP
- Asynchronous non-blocking I/O calls
- Multithreading with pthreads
- Using the ReactPHP library
- Measuring and Optimizing Database Performance
- SQL query performance
- The structure of indexes
- The execution plan
- Basic query optimization
- The performance schema and advanced query optimization
- Advanced benchmarking tools
- DBT2
- SysBench
- Querying a Modern SQL Database Efficiently
- Modern SQL
- Definition
- WITH and WITH RECURSIVE
- CASE
- OVER and PARTITION BY
- OVER AND ORDER BY
- GROUPING SETS
- JSON clauses and functions
- FILTER
- LATERAL queries
- Summary.
- JavaScript and Danger-Driven Development
- The global object and local variables
- Avoiding global variables
- Evaluating local variables
- Avoiding bad idioms and keeping an eye on the very bad parts
- Bad idioms
- Bad constructs - the with statement
- Bad constructs - the eval statement
- Bad constructs - the try-catch-finally construct
- Avoiding inefficient loops
- Linters and strict mode
- Using the DOM efficiently
- Modifying the document tree
- Updating an invisible element
- Making style changes
- Searching for nodes
- Inspecting a large number of nodes
- Managing references from one document to another
- Caching DOM values
- Structuring and loading a JavaScript application
- Minimizing costly operations
- Cleaning up, minifying, and compressing resources
- Loading page resources
- Caching page resources
- Functional JavaScript
- Simplifying functions
- Functional programming principles
- Functions as first-class citizens
- Dealing with side effects
- Immutability
- Functional programming techniques
- Map
- Filter
- Reduce
- Tail-call optimization
- What is TCO?
- How TCO works
- Recognizing tail-calls
- More upcoming JavaScript features
- Async functions
- Async generators and for-await-of loops
- Pipeline operator
- Partial application
- Boosting a Web Server's Performance
- MOD_SPDY and HTTP/2
- Multiplexed and prioritized streams
- Server pushing
- Header compression
- HTTP/2
- PHP-FPM and OPCache
- PHP-FPM
- Zend OPcache
- ESI and Varnish Cache
- Edge Side Includes (ESI)
- Varnish Cache
- Client-side caching
- Browser caching
- Content Delivery Networks (CDNs)
- Other Faster Web tools
- Going Beyond Performance
- Clocked and perceived time
- Speed perception
- Reasonable delay and response times.
- UI design principles and patterns
- Beyond Performance" tools
- Other Books You May Enjoy
- Index.
- Notes:
- Includes bibliographical references and index.
- Description based on print version record.
- ISBN:
- 9781788397711
- 1788397711
- OCLC:
- 1041927361
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.