Things That Matter Most

Things That Matter Most

  • Home
  • Business
  • Faith
  • Technology
  • Politics
  • Creative Writing
  • Email
  • GitHub
  • RSS
  • Twitter

Powered by Genesis

Scripting vs Programming: PHP and OOP

September 2, 2014 by Eric

OOP doesn’t make much sense when we’re talking about a scripting language.

Filed Under: Technology Tagged With: Object-oriented Programming, PHP, scripting language

Making Singletons Safe in PHP

January 7, 2013 by Eric

Last time, I argued in favor of the Singleton pattern in WordPress.  Singletons make sense in WordPress specifically for several reasons: They live in the global scope without using the already abused/overused global keyword As a distributed application maintained by several hundred developers, they prevent problems that likely arise from others misusing your code But […]

Filed Under: Technology Tagged With: Class, Dependency Injection, Duck Typing, Global Variable, Method, Object-oriented Programming, PHP, singleton, Singleton Pattern, Software Design Patterns, Unit Test, WordPress, Y Combinator

About Me

Eric is a storyteller, web developer, and outdoorsman living in the Pacific Northwest. If he's not working with new tech in web development, you can probably find him out running, climbing, or hiking in the woods.

Get the newsletter