Archive for the ‘Design Patterns’ Category

Are Bitwise Operators Still Relevant in Modern PHP?

Posted on: No Comments
Many of you probably scratched your heads reading this title. "Bitwhat?" In this article, we'll look at what bitwise operators are, and whether or not their use is still relevant in this modern age of computing. Example Use Case I'd been trying to rea...

JavaScript Design Patterns: The Observer Pattern

Posted on: No Comments
In JavaScript, there is a problem that comes up often. You need a way to update parts of a page in response to certain events, with the data these provide. Say, for example, user input that you then project into one or many components. This leads into ...

What Are the Workflows of Prominent PHP Community Members?

Posted on: No Comments
Workflow refers to both the process and the tools that are used in this process. Almost every developer comes up with a process of creating and finalizing the project deliverables. This process is implemented through a set of tools that the developer c...

Re-Introducing PHPUnit – Getting Started with TDD in PHP

Posted on: No Comments
There are a lot of PHPUnit posts on our site already (just check the tag), but it's been a while since we've actually introduced people to it, and the tool has evolved significantly since then. This article aims to re-introduce the tool in a modern way...

Designing The Perfect Slider

Posted on: No Comments
    When we think about a slider, we usually imagine an image gallery slider, or the infamous carousel, or perhaps off-canvas navigation, with the overlay sl...

Re-Introducing Eloquent’s Polymorphic Relationships

Posted on: No Comments
You've probably used different types of relationships between models or database tables, like those commonly seen in Laravel: one-to-one, one-to-many, many-to-many, and has-many-through. But there's another type of relationship that's not so common: po...

The MVC Design Pattern in Vanilla JavaScript

Posted on: No Comments
Design patterns often get incorporated into popular frameworks. The Model-View-Controller (MVC) design pattern, for example, is one that is ubiquitous. In JavaScript, it is hard to decouple the framework from the design pattern. Oftentimes, a particula...

The Theory of Constraints in PHP

Posted on: No Comments
I had been reading The Phoenix Project, a great novel about IT (you read that right), which presents day to day IT and devops problems at a large Amazon-like company in a way which makes mortals understand the complexities and chaos of 21st century tec...