Scripting vs Programming: PHP and OOP
·
OOP doesn’t make much sense when we’re talking about a scripting language.
·
OOP doesn’t make much sense when we’re talking about a scripting language.
·
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 [cci]global[/cci] keyword As a distributed application maintained by several hundred developers, they prevent problems that likely arise from others misusing your code But