Posts marked with “php”

Never* Use Arrays

by · January 3, 2020

0
 

Arrays are a core feature of the PHP language, and so easy to use many developers don’t go beyond them. Fixating on arrays as the uber-data structure, while tempting, can rapidly lead to unmaintainable, unreadable code. Let’s look at better options and just how accessible those options are.

 

Object-Oriented Programming: A Primer, Part Two

by ·

0
 

The first article in this series, found in the November 2019 issue, focused on the “what” in object-oriented programming; that is, fundamental concepts and related features offered by PHP and what those features do. While this article does a bit more of the same, it focuses more on the “how” of object-oriented programming, particularly principles which guide how you use these features to build out your applications.

 

Object Oriented Programming, PHP 7.4, CPP extensions with Lochemem Bruno Michael, and Dependency Injection

by · November 25, 2019

0
 

In Episode 26 Just before the Thanksgiving holidays in the United States, we reviewed the November 2019 issue “Object Orientation.” Topics Evolution of object-oriented programing in PHP and understanding how to use objects effectively. Avoiding career stagnation and networking at conferences and user groups. PHP 7.4’s release and what features we’re looking forwards to. Eric […]

 

The Workshop: What’s New in PHP 7.4

by · November 13, 2019

0
 

PHP 7.4 brings typed properties, arrow functions, coalesce assignment operators, and more. Read this article to learn about the new feature of this release.

 

Object Orientation

by · November 4, 2019

0
 

There’s more than one way to solve a problem, and one popular approach to designing software is to use classes, interfaces, and objects. Using OOP effectively takes practice augmented with dedicated study. This issue rounds up articles on how to get started with object-oriented programming, understanding the dependency injection pattern, and more.

 

finally{}: Frameworks Don’t Make Any Sense

by ·

0
 

Now that I have your attention, let’s talk about why the title of this article, I feel, is entirely wrong (though I used to believe it). I’m writing about this because I’ve had a sordid history with frameworks and want to share where I’ve landed.

 

The Workshop: What’s New in PHP 7.4

by ·

0
 

PHP 7.4 brings typed properties, arrow functions, coalesce assignment operators, and more. PHP 7.4.0RC4 was released on October 17th. There’s still plenty of time as the current planned date for general availability of 7.4 is November 28th, 2019, according to the PHP 7.4 timetable.

 

Education Station: Dependency Injection, Part One

by ·

0
 

Design patterns provide useful approaches for solving common problems in application design. Dependency injection is a powerful one, but it is also challenging to understand and apply. In this article, we’ll cover what it does and how to use it properly.

 

Building PHP Extensions With C++

by ·

0
 

PHP extensions are primarily composed of additions (functions and classes) to the PHP userland. Considering the PHP virtual machine is built in C, it holds that extensions are generally idiomatic C-based syntaxes. C++, a syntax-base with C-linkage capability, is an eligible extension-builder language and quite robust in its offerings. In particular, C++ 11 and newer […]

 

Object-Oriented Programming: A Primer, Part One

by ·

0
 

If you’re not familiar with the phrase “object-oriented programming” or haven’t done it before, this article is for you! We’ll start from basic principles and build upon them until you have a decent foundational grasp of what object-oriented programming is, why you should consider doing it, and how to do so.