Posts marked with “php”

Sustainable PHP: Database Playback Testing

by · January 8, 2021

0
 

While completing the Deep Analysis we discussed last month, I was faced with the inability to test. That’s because—I discovered–accounting data cannot be erased—even in the sandbox. There’s no way to begin each test with a clean test environment. This month we walk through a relatively convoluted solution. We’ll capture the accounting data as we […]

 

The Workshop: S3 Storage with MinIO

by ·

0
 

This month, we’re diving into running our own S3 compatible open-source server via the open-source project MinIO. We’ll configure MinIO alongside our local development environment to quickly replicate our application’s integration with S3 object storage without operating on “production” storage buckets or having to set up “dev” buckets.

 

Education Station: Working with PHP Streams

by ·

0
 

Even with today’s larger servers and more abundant resources, web applications still need to be mindful of what resources they are using. While the days of worrying about every bit of memory have gone, many applications still work with data sets in the tens or hundreds of megabytes in size. We may not think about […]

 

PHP Puzzles: Staircase Path

by ·

0
 

Welcome to a new year! In our last puzzle, we started building a collection of related functions to output and navigate through a grid, starting with printing our grid to a command-line using dark and light shade characters to indicate wall or open path, respectively. In this article, we look at plotting a route from […]

 

PHP 8, Git Poductivity, and Resolutions

by · December 21, 2020

0
 

Listen to Eric, John, and Oscar discuss the articles in the December 2020 issue, PHP 8 Bits and Git Topics Covered OSMI 2020 Mental Health in Tech Survey. Features in PHP 8 we’re looking forward to using, like constructor property promotion and named arguments. Being more productive with Git, aliases, and hooks. Using the circuit […]

 

PHP 8 Distilled

by · December 8, 2020

0
 

By Matthew Turland PHP 8 is a significant release for much more than just its version number: it’s absolutely packed with shiny new language features, potential performance improvements, and fixes to many unintuitive behaviors and inconsistencies in previous iterations of the language. This article won’t provide a comprehensive review of every new addition or change […]

 

Security Corner: Circuit Breakers

by · December 3, 2020

0
 

If your application’s stability depends on the availability of a third-party system, the reliability of that external system becomes critical to the smooth operation of your own. The circuit breaker pattern is a proven way to protect against an unstable system causing problems with yours. Use it, and you won’t be surprised by an unplanned […]

 

Sustainable PHP: Deep Problem Analysis

by ·

0
 

Sometimes, I need to write experimental code in order to explore and understand how the system works. This is particularly true when dealing with third-party software. Sometimes those experiments become large with many thousands of lines of “experimental” code. Here are my principles and guidelines for making that experimental code a success.

 

Education Station: Using Factories and Hydration

by ·

0
 

The applications that we build are usually portals for users to view and manipulate data. That data may be as simple as a web page pulled from a database or a collection of raw data. An admin section may display graphs of various analytical data on one page, while another may show configuration data.

 

PHP Puzzles: Grid Mapping

by ·

0
 

In our last issue, we plotted a list of compass directions onto a grid to determine a destination x,y point. In this article, we look at generating a simple output for a colored grid.