The Grumpy Programmer's Guide To Testing PHP Applications

The Grumpy Programmer's Guide To Testing PHP Applications PDF Author: Kara Ferguson
Publisher:
ISBN: 9781940111797
Category :
Languages : en
Pages : 152

Get Book Here

Book Description
Learn how a Grumpy Programmer approaches testing PHP applications, covering both the technical and core skills you need to learn in order to make testing just a thing you do instead of a thing you struggle with. I feel that testing, as a concept, is hard to explain to beginning programmers: "we are going to write code that is going to make sure your other code works as expected". The assumption that underlies all this is that you already understand how to write computer programs in your chosen language! This makes it very difficult to teach to beginner or inexperienced programmers. When you combine this with how PHP does not force any particular structure on you, you have an environment where only the folks who are really motivated end up learning about testing. The Grumpy Programmer's Guide To Testing PHP Applications is my way to try and provide some help for developers who are looking to become more test-centric and reap the benefits of automated testing and related tooling like static analysis and automation. I believe that by learning the skills (both technical and core) surrounding testing you will be able to write tests using almost any testing framework and almost any PHP application. The book combines all the material from my previous books, adds new material, and revisits some old topics where my experiences have changed my thoughts. I break the vast topic of testing into smaller chunks, along with providing lots of examples and explanations of how I approach testing applications. Some of the things I cover are: Test-Driven development Strategies for Test-After practices Test refactoring strategies How PHPUnit itself works Complementary tools and approaches like static analysis and mutation testing Learning the core skills you need to get other people testing their code

The Grumpy Programmer's Guide To Testing PHP Applications

The Grumpy Programmer's Guide To Testing PHP Applications PDF Author: Kara Ferguson
Publisher:
ISBN: 9781940111797
Category :
Languages : en
Pages : 152

Get Book Here

Book Description
Learn how a Grumpy Programmer approaches testing PHP applications, covering both the technical and core skills you need to learn in order to make testing just a thing you do instead of a thing you struggle with. I feel that testing, as a concept, is hard to explain to beginning programmers: "we are going to write code that is going to make sure your other code works as expected". The assumption that underlies all this is that you already understand how to write computer programs in your chosen language! This makes it very difficult to teach to beginner or inexperienced programmers. When you combine this with how PHP does not force any particular structure on you, you have an environment where only the folks who are really motivated end up learning about testing. The Grumpy Programmer's Guide To Testing PHP Applications is my way to try and provide some help for developers who are looking to become more test-centric and reap the benefits of automated testing and related tooling like static analysis and automation. I believe that by learning the skills (both technical and core) surrounding testing you will be able to write tests using almost any testing framework and almost any PHP application. The book combines all the material from my previous books, adds new material, and revisits some old topics where my experiences have changed my thoughts. I break the vast topic of testing into smaller chunks, along with providing lots of examples and explanations of how I approach testing applications. Some of the things I cover are: Test-Driven development Strategies for Test-After practices Test refactoring strategies How PHPUnit itself works Complementary tools and approaches like static analysis and mutation testing Learning the core skills you need to get other people testing their code

PHP Web Development with MySQL

PHP Web Development with MySQL PDF Author: Kenneth Marks
Publisher:
ISBN: 9781940111957
Category :
Languages : en
Pages :

Get Book Here

Book Description
# BioKen Marks has been working in his dream job as a Programming Instructor at Madison College in Madison, Wisconsin, teaching PHP web development using MySQL since 2012. Prior to teaching, Ken worked as a software engineer for more than 20 years, mainly developing medical device software. Ken is actively involved in the PHP community, speaking and teaching at conferences.# Description## Build Web Applications from Scratch with PHP and MySQLLearn how to build dynamic and secure websites using modern PHP with MySQL databases.PHP today is a mature, robust language focused on programming web applications and sites. This book gives you an introduction to its syntax, built-in data structures, and scalar data types. You'll also see how to work with cookies, sessions, and web requests using native PHP functions and features. This approach gives you a solid grounding for working in any other PHP application from WordPress, to modern frameworks, to legacy applications. Each chapter includes plenty of code examples to reinforce the concepts introduced as well as suggested exercises for the reader.The book also walks you through building a typical Create-Read-Update-Delete (CRUD) application, starting with setting up a development environment through building the pages and forms required. Along the way, you'll get solid, practical advice on how to add authentication, handle file uploads, safely store passwords, application security, and more.### Topics Covered* PHP Script Execution* Setting up a Development Environment* Using Variables, Strings, and Basic Operators* Working with Arrays* Comparing Variables, Logical Operators, and Flow Control* Writing Counting and Sentinel Loops* Reusing code with custom functions* Working with HTML Forms* Validating User Input* Saving, Updating, and Deleting Data in a Database* Querying and Displaying Database Result Sets* Safely Working with File Uploads* Adding Basic and Session-based User Log Ins* Persisting User data with Cookies and Sessions* Securing against Common Web Attacks and Vulnerabilities* Building a shopping-cart-like feature.* An Introduction to Object-Oriented Code in PHP

Modern PHP

Modern PHP PDF Author: Josh Lockhart
Publisher: "O'Reilly Media, Inc."
ISBN: 1491904992
Category : Computers
Languages : en
Pages : 251

Get Book Here

Book Description
PHP is experiencing a renaissance, though it may be difficult to tell with all of the outdated PHP tutorials online. With this practical guide, you’ll learn how PHP has become a full-featured, mature language with object-orientation, namespaces, and a growing collection of reusable component libraries. Author Josh Lockhart—creator of PHP The Right Way, a popular initiative to encourage PHP best practices—reveals these new language features in action. You’ll learn best practices for application architecture and planning, databases, security, testing, debugging, and deployment. If you have a basic understanding of PHP and want to bolster your skills, this is your book. Learn modern PHP features, such as namespaces, traits, generators, and closures Discover how to find, use, and create PHP components Follow best practices for application security, working with databases, errors and exceptions, and more Learn tools and techniques for deploying, tuning, testing, and profiling your PHP applications Explore Facebook’s HVVM and Hack language implementations—and how they affect modern PHP Build a local development environment that closely matches your production server

Functional Programming in PHP

Functional Programming in PHP PDF Author: Simon Holywell
Publisher: PHP[Architect]
ISBN: 9781940111056
Category :
Languages : en
Pages : 118

Get Book Here

Book Description
Many programming languages have embraced Functional Programming paradigms to augment the tools available. It also facilitates writing code that is easier to understand, easier to test, and able to take advantage of parallelization. PHP introduced anonymous function and closures in 5.3, providing a more succinct way to tackle common problems. However, making the leap from the more common imperative style requires understanding how and when to best use lambdas, closures, recursion, and more. Functional Programming will show you how to leverage these new language features by understanding functional programming principles. Plenty of examples are provided to illustrate each concept as it's introduced and to show how to implement it with PHP. You'll learn how to use map/reduce, currying, composition, and more. You'll see what external libraries are available and new language features are proposed to extend PHP's functional programming capabilities.

Zend Framework 1 to 2 Migration Guide

Zend Framework 1 to 2 Migration Guide PDF Author: Bart McLeod
Publisher: PHP[Architect]
ISBN: 9781940111216
Category : Open source software
Languages : en
Pages : 108

Get Book Here

Book Description
Zend Framework 1 was one of the first major frameworks for PHP 5 and, for many, introduced object-oriented programming principles for writing PHP applications. Many developers looking to embrace a well-architected and supported framework chose to use it as the foundation for their applications. However, the first version was not without its faults. Zend Framework 2 is a significant improvement over its predecessor. It re-designed key components, promotes the re-use of code through modules, and takes advantage of features introduced in PHP 5.3 such as namespaces. The first release of ZF1 was in 2006. If you're maintaining an application built on it, this practical guide will help you to plan how to migrate to ZF2. This book addresses common issues that you'll encounter and provides advice on how best to update your application to take advantage of ZF2's features. It also compares how key components-including Views, Database Access, Forms, Validation, and Controllers-have been updated and how to address these changes in your application code. Written by PHP professional and Zend Framework contributor, coach, and consultant Bart McLeod, this book leverages his expertise to ease your application's transition to Zend Framework 2.

Sams Teach Yourself PHP in 24 Hours

Sams Teach Yourself PHP in 24 Hours PDF Author: Matt Zandstra
Publisher: Sams Publishing
ISBN: 9780672326196
Category : Computers
Languages : en
Pages : 578

Get Book Here

Book Description
Think of all the things you could do in 24 hours. Go sightseeing. Read a book. Learn PHP. Sams Teach Yourself PHP in 24 Hours is a unique learning tool that is divided into 24 one-hour lessons over five sections. Starting with the basics, you will discover the fundamentals of PHP and how to apply that knowledge to create dynamic websites with forms, cookies and authentication functions. You will also find out how to access databases, as well as how to integrate system components, e-mail, LDAP, network sockets and more. A support website includes access to source code, PHP updates, errata and links to other relevant websites. Sams Teach Yourself PHP in 24 Hours is a quick and easy way to learn how to create interactive websites for your end user.

The Dev Lead Trenches: Lessons for Managing Developers

The Dev Lead Trenches: Lessons for Managing Developers PDF Author: Chris Tankersley
Publisher:
ISBN: 9781940111711
Category : Computers
Languages : en
Pages : 128

Get Book Here

Book Description
You're the Team Lead-Now What? Whether you're a seasoned lead developer or have just been "promoted" to the role, this collection can help you nurture an expert programming team within your organization. Get the Most Out of Your Developers After reading this book, you'll understand what processes work for managing the tasks needed to turn a new feature or bug into deployable code. But success is more than just slinging code when you're in charge, and this book covers project management and people skills you'll need to hone. These essays touch on a variety of topics. This book collects almost two-years worth of writings based on Chris Tankersley's experience leading development teams. He first wrote these in his column, also named "The Dev Lead Trenches," for php[architect] magazine. Chris' approach to managing a group of programmers comes from the experiences only another programmer can appreciate. His advice is grounded in an authentic concern for bringing the best out people without treating them as interchangeable cogs. He recognizes the value of well-defined, shared workflows without advocating blind adherence to bureaucratic processes. Whether you're a seasoned lead developer or have just been "promoted" to the role, this collection can help you nurture an expert programming team within your organization. His insight will help you get the most from your team members by applying practical, real-world advice. Reorganized by Topic This book re-organizes his essays thematically, instead of including them in chronological publication order. Chapters 1-3 touch upon what the Development Lead role should entail, how to interact with others, and also defines what you should not do. Chapters 4-9 look at aspects of managing what your team is tasked with, from project management advice to a workflow for turning feature or bug tickets into deployable code. Chapters 10-14 deal with the personnel aspects of finding new hires, assessing individuals, and handling poor performance. Chapter 15-18 tackle topics related to your team, or company, culture with advice on what contributes to a positive one and the things to avoid to prevent burnout and toxicity in your workplace. If you're a newly minted technical lead, start with chapter one to get your bearings. Otherwise, each chapter can stand alone if you have a specific need for help or insight. Topics Covered An overview of the primary responsibilities of a technical lead role. How to listen to and understand people and why communication is a critical skill. The habits and problems to avoid in your new position. Finding project management tools that work for you. Simple approaches to project management to stay organized. How to make useful estimates for new tasks. What information to collect when creating an issue ticket. Issue tracking workflows that don't get in the way. Using code reviews effectively with your team. How to find new programmers to hire. Streamlining your onboarding processes to bring new members up to speed quickly. How to evaluate job performance. How to deal with problematic team members. How to encourage ongoing professional development within your team. Cultivating a health organization culture to prevent burn out.

Beyond Laravel

Beyond Laravel PDF Author: Michael Akopov
Publisher: PHP[Architect]
ISBN: 9781940111919
Category :
Languages : en
Pages : 128

Get Book Here

Book Description
Harness the power of the Laravel ecosystem to bring your idea to life. In this book, Michael Akopov shares his experiences creating software solutions that can not only survive but thrive. Since 2011, Laravel has revolutionized how PHP developers work by providing tools that just work, take care of routine tasks, and boost productivity. Concurrently, it's fostered an ecosystem of packages, libraries, tools, companies, and solutions that tackle challenges common to web applications, share solutions, and collaborate around the world. This approach allows you to focus on what really matters to make your idea stand out without wasting time on already-solved problems. An overview of this ecosystem has been sorely needed. I'm thrilled to see Michael provide a survey of the Laravel world so that developers can learn more about the variety of tools available to them. - Taylor Otwell This book covers: What makes Laravel productive and how to get the most out of it. The key technical subsystems Laravel provides a web app. What to focus on and what to delegate to succeed as an entrepreneur. Options for setting up development environments to build your application. Services to look at to minimize DevOps tasks for running servers. The pros and cons of serverless or dedicated hosting models. Laravel packages to jumpstart front-end and back-end coding. Components to use to augment what the framework provides. Where to get news and support from the Laravel community. Written by Laravel and PHP professional Michael Akopov, this book provides a concise guide for taking your software from an idea to a business. If you're looking to take a project to the next level, he'll show you how to put it together without burning out.

Debugging Teams

Debugging Teams PDF Author: Brian W. Fitzpatrick
Publisher: "O'Reilly Media, Inc."
ISBN: 1491932511
Category : Business & Economics
Languages : en
Pages : 190

Get Book Here

Book Description
In the course of their 20+-year engineering careers, authors Brian Fitzpatrick and Ben Collins-Sussman have picked up a treasure trove of wisdom and anecdotes about how successful teams work together. Their conclusion? Even among people who have spent decades learning the technical side of their jobs, most haven’t really focused on the human component. Learning to collaborate is just as important to success. If you invest in the "soft skills" of your job, you can have a much greater impact for the same amount of effort. The authors share their insights on how to lead a team effectively, navigate an organization, and build a healthy relationship with the users of your software. This is valuable information from two respected software engineers whose popular series of talks—including "Working with Poisonous People"—has attracted hundreds of thousands of followers.

WordPress Development in Depth

WordPress Development in Depth PDF Author: Peter MacIntyre
Publisher:
ISBN: 9781940111834
Category :
Languages : en
Pages :

Get Book Here

Book Description