Magic Methods Within Yii2

Magic Methods Within Yii2

Yii and Yii2 utilize various magic methods within the framework, the implementation of which can be found in the Object class, which most of the framework extends off of.  These magic methods __get, __set, __isset, __unset, and __call enforce a set of standards...
No One Has Time to be Wait()ing.

No One Has Time to be Wait()ing.

Like any dev shop worth its weight, we strongly promote testing of our products. In order to produce a quality product, we need an internal way to ensure a given level of quality is being met. Business requirements lead to tests, the tests lead to the logic, the logic...
When to use Monotonic Time

When to use Monotonic Time

When writing about time and software development, most people think of time zones. This Youtube video does a pretty good job of explaining why time zones can become such a nightmare for developers. Recently, I stumbled upon a whole different issue with time and...
Phone Number Validation: A Cautionary Tale

Phone Number Validation: A Cautionary Tale

We recently received a ticket for a project requesting phone number validation in some forms. Seems like a simple enough problem to solve, right? Well, it’s not. Even with existing libraries that claim to handle phone validation, the more general the validation...