Viewing 0 current events matching “meetup:event=239099503” by Date.
Sort By: Date | Event Name, Location , Default |
---|---|
No events were found. |
Viewing 1 past event matching “meetup:event=239099503” by Date.
Sort By: Date | Event Name, Location , Default |
---|---|
Tuesday
Jun 20, 2017
|
PDX PHP - Using the Null Object Pattern ImpactFlow Food, give-a-ways, speakers and a great time to network with the fabulous PHP Community!
Using the Null Object Pattern When you develop OO PHP applications, you'll eventually get the error message "PHP Notice: Trying to get property of non-object". You can add a conditional to check if an object is null. There is however a better way. Null Object Pattern is a design pattern that helps you to simplify your application logic. The Null Object patthern removes the need to check for an object vs null by using Polymorphism. I'll demonstrate how it works with generic PHP code, and how you can apply it to work with database results.
|