Posts marked with “php”
PHP 8, Git Poductivity, and Resolutions
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 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
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
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
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
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.
Applying Best Coding Practices to PHP, Part Two
Sometimes, SOLID can be a bit hard (no pun intended) to follow because we can’t even notice what we are doing wrong, especially with the Liskov Substitution Principle, as it can be very theoretical. In part two, we look at another, more practical approach for writing solid code.
PHP 8 Distilled
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.
Type hints, SOLID programming, burn out, and more
Listen to Eric, John, and Oscar discuss the articles in the November 2020 issue, SOLID Foundations Topics Covered OSMI 2020 Mental Health in Tech Survey. Practical uses for scalar type hints in PHP. SOLID principles for programming. The peculiarities of floating point math and handling money calculations as a result. Using locks to prevent race […]
Sustainable PHP: Developing Domain Events
Domain Events are one of the mainstays of modern Domain-Driven Design. They’re powerful, simple, useful. However, when developing them, we need to consider infrastructure. We’ll examine the need for explicit database transactions, view a table design, and provide a way to do our future selves a favor!