Library Hours
Monday to Friday: 9 a.m. to 9 p.m.
Saturday: 9 a.m. to 5 p.m.
Sunday: 1 p.m. to 9 p.m.
Naper Blvd. 1 p.m. to 5 p.m.
     
Limit search to available items
Record 1 of 2
Results Page:  Previous Next
Author Windler, Carsten.

Title Clean Code in PHP [electronic resource] : Expert Tips and Best Practices to Write Beautiful, Human-Friendly, and Maintainable PHP / Carsten Windler, Alexandre Daubois. [O'Reilly electronic resource]

Edition 1st edition.
Imprint Birmingham : Packt Publishing, Limited, 2022.
QR Code
Description 1 online resource (264 p.)
Note Description based upon print version of record.
Contents Cover -- Title Page -- Copyright & Credits -- Contributors -- Table of Contents -- Preface -- Part 1 -- Introducing Clean Code -- Chapter 1: What Is Clean Code and Why Should You Care? -- What this book will cover -- Understanding what clean code is -- The importance of clean code in teams -- The importance of clean code in personal projects -- Summary -- Chapter 2: Who Gets to Decide What "Good Practices" Are? -- Who decides these things anyway? -- Best practices -- where do they really come from? -- Design pattern principles -- Being context-aware -- Being consistent -- get results quicker
About source code analysis tools -- About testing and its multiple forms -- Summary -- Chapter 3: Code, Don't Do Stunts -- Understanding code -- A bit of history -- The purpose of code -- Be understood, not clever -- A note on maintainability -- Using binary operators and octal, hexadecimal, and binary notations -- Assigning a variable and using gotos -- Excessively using comments -- Using ternary comparisons -- Using abbreviations -- Bringing micro-optimizations to your code -- Recoding the methods of the SPL -- Summary -- Chapter 4: It is about More Than Just Code -- PHP as an ecosystem
Choosing the right libraries -- A word about semantic versioning -- What is semantic versioning? -- How to deal with semantic versioning -- Stability versus trends -- Summary -- Chapter 5: Optimizing Your Time and Separating Responsibilities -- Naming and organizational conventions -- Class files and interface files -- Executables -- Web assets and resources -- Naming classes, interfaces, and methods -- Naming folders -- Separating responsibilities -- Event dispatching -- Demystifying polymorphism -- interfaces and abstract classes -- Interfaces -- Abstract classes -- Summary
Chapter 6: PHP is Evolving -- Deprecations and Revolutions -- Old versus new PHP -- Strict typing -- Error reporting -- Attributes -- The version 8 revolution -- Match syntax -- Named arguments -- Read-only classes and properties -- Migrating resources to proper classes -- Protecting your sensitive arguments from leaking -- Summary -- Part 2 -- Maintaining Code Quality -- Chapter 7: Code Quality Tools -- Technical requirements -- Syntax checking and code styling -- The PHP built-in linter -- PHP CS Fixer: a code sniffer -- Static Code Analysis -- phpcpd -- the copy and paste detector
PHPMD: the PHP mess detector -- PHPStan -- a static analyzer for PHP -- Psalm: A PHP static analysis linting machine -- IDE extensions -- PHP Inspections (EA Extended) -- Intelephense -- Summary -- Further reading -- Chapter 8: Code Quality Metrics -- Technical requirements -- Introducing code quality metrics -- Aspects of software quality -- Code quality metrics -- Gathering metrics in PHP -- phploc -- PHP Depend -- PhpMetrics -- The pros and cons of using metrics -- The pros -- The cons -- Summary -- Further reading -- Chapter 9: Organizing PHP Quality Tools -- Technical requirements
Note Installing code quality tools using Composer
Summary Practical lessons, examples, and practices from PHP experts on how to take your PHP skills to a professional level Key Features Easily navigate to key clean code principles specific to PHP development with this hands-on guide Learn the how and why of writing clean code through practical examples Skip the superfluous knowledge and grasp everything that's relevant to the real-world development environment Book Description PHP is a beginner-friendly language, but also one that is rife with complaints of bad code,;yet no clean code books are specific to PHP. Enter Clean Code in PHP. This book is a one-stop guide to learning the theory and best practices of clean code specific to real-world PHP app development environments. This PHP book is cleanly split to help you navigate through coding practices and theories to understand and adopt the nuances of the clean code paradigm. In addition to covering best practices, tooling for code quality, and PHP design patterns, this book also presents tips and techniques for working on large-scale PHP apps with a team and writing effective documentation for your PHP projects. By the end of this book, you'll be able to write human-friendly PHP code, which will fuel your PHP career growth and set you apart from the competition. What you will learn Build a solid foundation in clean coding to craft human-readable code Understand metrics to determine the quality of your code Get to grips with the basics of automated tests Implement continuous integration for your PHP applications Get an overview of software design patterns to help you write reusable code Gain an understanding of coding guidelines and practices for working in teams Who this book is for This book is for early-career PHP developers who wish to avoid writing messy code by learning how to write understandable and maintainable code that sets them apart from rest. The book assumes familiarity with PHP coding and principles, but no knowledge of advanced principles will be necessary.
Subject PHP (Computer program language)
PHP (Langage de programmation)
PHP (Computer program language)
Added Author Daubois, Alexandre.
Other Form: Print version: Windler, Carsten Clean Code in PHP Birmingham : Packt Publishing, Limited,c2022
ISBN 9781804618752
1804618756
Patron reviews: add a review
Click for more information
EBOOK
No one has rated this material

You can...
Also...
- Find similar reads
- Add a review
- Sign-up for Newsletter
- Suggest a purchase
- Can't find what you want?
More Information