Justin Sternberg @Jtsternberg
Southport, NC, USA | http://about.me/jtsternberg

February 2015

@CoenJacobs I’d love that.

8:34am Feb 25th 2015 view on twitter

@CoenJacobs I’ll take your word for it, but this wasn’t hard to setup or config. ;) j.ustin.co/118iSlF

8:33am Feb 25th 2015 view on twitter

@CoenJacobs Unfortunately, I haven’t wrapped my brain around composer, but i’d be interested in a post comparing the 2. :)

8:31am Feb 25th 2015 view on twitter

@CoenJacobs But only if using composer. ;)

8:30am Feb 25th 2015 view on twitter

RT @CoenJacobs: @Jtsternberg Not just via spl_autoload. The Composer autoloader works fine too.

8:29am Feb 25th 2015 view on twitter

I feel like there’s hesitancy in the WP world w/ autoloaders. spl_autoload_register is your friend. Namespaces NOT required.

8:28am Feb 25th 2015 view on twitter

@salcode @GaryJ @scottbolinger Gary, this is an example of the god-class I was talking about. Can see Dep. Injec. j.ustin.co/1DTu5Wi

8:22am Feb 25th 2015 view on twitter

@salcode @GaryJ @scottbolinger I like to think CMB2 has a few good examples of it: j.ustin.co/1DTtVhG j.ustin.co/1Dat2xe etc

8:21am Feb 25th 2015 view on twitter

@GaryJ @scottbolinger ah, I think I know what you’re getting at. I prefer to create one god–class which instantiates/holds all others.

7:45am Feb 25th 2015 view on twitter

@GaryJ @scottbolinger again, it depends on what I’m doing. $this->admin = new My_Admin( $this ) is a viable option.

6:21am Feb 25th 2015 view on twitter